block: Remove unused code
authorDamien Le Moal <damien.lemoal@wdc.com>
Thu, 27 Jun 2019 02:59:41 +0000 (11:59 +0900)
committerJens Axboe <axboe@kernel.dk>
Thu, 27 Jun 2019 13:34:25 +0000 (07:34 -0600)
bio_flush_dcache_pages() is unused. Remove it.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/bio.c
include/linux/bio.h

index ad9c3aa9bf7dfc9dfd4f7715bae0b0b792aa0dca..bb55b94bb36129fa5b81d36505aa945ca9f25de6 100644 (file)
@@ -1760,18 +1760,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)
 {
        /*
index ee11c43247515880f84167e268f3fc055464449d..5a8ae56e09ff8a3ad0813a197936f54754bd772c 100644 (file)
@@ -443,17 +443,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);