All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] block: Remove unused code
@ 2019-06-27  2:59 Damien Le Moal
  2019-06-27  7:31 ` Christoph Hellwig
  2019-06-27 13:34 ` Jens Axboe
  0 siblings, 2 replies; 3+ messages in thread
From: Damien Le Moal @ 2019-06-27  2:59 UTC (permalink / raw)
  To: linux-block, Jens Axboe; +Cc: Christoph Hellwig

bio_flush_dcache_pages() is unused. Remove it.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
---
 block/bio.c         | 12 ------------
 include/linux/bio.h | 11 -----------
 2 files changed, 23 deletions(-)

diff --git a/block/bio.c b/block/bio.c
index 1c21d1e7f1b8..85a9abe9cf21 100644
--- a/block/bio.c
+++ b/block/bio.c
@@ -1816,18 +1816,6 @@ void generic_end_io_acct(struct request_queue *q, int req_op,
 }
 EXPORT_SYMBOL(generic_end_io_acct);
 
-#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
-void bio_flush_dcache_pages(struct bio *bi)
-{
-	struct bio_vec bvec;
-	struct bvec_iter iter;
-
-	bio_for_each_segment(bvec, bi, iter)
-		flush_dcache_page(bvec.bv_page);
-}
-EXPORT_SYMBOL(bio_flush_dcache_pages);
-#endif
-
 static inline bool bio_remaining_done(struct bio *bio)
 {
 	/*
diff --git a/include/linux/bio.h b/include/linux/bio.h
index f87abaa898f0..34e05a6e139c 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -444,17 +444,6 @@ void generic_end_io_acct(struct request_queue *q, int op,
 				struct hd_struct *part,
 				unsigned long start_time);
 
-#ifndef ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
-# error	"You should define ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE for your platform"
-#endif
-#if ARCH_IMPLEMENTS_FLUSH_DCACHE_PAGE
-extern void bio_flush_dcache_pages(struct bio *bi);
-#else
-static inline void bio_flush_dcache_pages(struct bio *bi)
-{
-}
-#endif
-
 extern void bio_copy_data_iter(struct bio *dst, struct bvec_iter *dst_iter,
 			       struct bio *src, struct bvec_iter *src_iter);
 extern void bio_copy_data(struct bio *dst, struct bio *src);
-- 
2.21.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: Remove unused code
  2019-06-27  2:59 [PATCH] block: Remove unused code Damien Le Moal
@ 2019-06-27  7:31 ` Christoph Hellwig
  2019-06-27 13:34 ` Jens Axboe
  1 sibling, 0 replies; 3+ messages in thread
From: Christoph Hellwig @ 2019-06-27  7:31 UTC (permalink / raw)
  To: Damien Le Moal; +Cc: linux-block, Jens Axboe, Christoph Hellwig

Looks good:

Reviewed-by: Christoph Hellwig <hch@lst.de>

The function has been unused going back to at least Linux 3.15.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] block: Remove unused code
  2019-06-27  2:59 [PATCH] block: Remove unused code Damien Le Moal
  2019-06-27  7:31 ` Christoph Hellwig
@ 2019-06-27 13:34 ` Jens Axboe
  1 sibling, 0 replies; 3+ messages in thread
From: Jens Axboe @ 2019-06-27 13:34 UTC (permalink / raw)
  To: Damien Le Moal, linux-block; +Cc: Christoph Hellwig

On 6/26/19 8:59 PM, Damien Le Moal wrote:
> bio_flush_dcache_pages() is unused. Remove it.

Applied, thanks.

-- 
Jens Axboe


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-06-27 13:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-27  2:59 [PATCH] block: Remove unused code Damien Le Moal
2019-06-27  7:31 ` Christoph Hellwig
2019-06-27 13:34 ` Jens Axboe

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.