summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2017-12-18 20:22:10 +0800
committerJens Axboe <axboe@kernel.dk>2018-01-06 09:18:00 -0700
commit25d8be77e19224d8f21b363d77b5283c5dc21a57 (patch)
tree4a07629635d9e2109caca1c0418208fc167f8082 /include
parentc2421edf5f9151d0eb28affbf76e9e4f8ddd03c6 (diff)
downloadlinux-25d8be77e19224d8f21b363d77b5283c5dc21a57.tar.gz
linux-25d8be77e19224d8f21b363d77b5283c5dc21a57.tar.bz2
linux-25d8be77e19224d8f21b363d77b5283c5dc21a57.zip
block: move bio_alloc_pages() to bcache
bcache is the only user of bio_alloc_pages(), so move this function into bcache, and avoid it being misused in the future. Also rename it to bch_bio_allo_pages() since it is bcache only. Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'include')
-rw-r--r--include/linux/bio.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/bio.h b/include/linux/bio.h
index 435ddf04e889..367a979fd4a6 100644
--- a/include/linux/bio.h
+++ b/include/linux/bio.h
@@ -500,7 +500,6 @@ static inline void bio_flush_dcache_pages(struct bio *bi)
#endif
extern void bio_copy_data(struct bio *dst, struct bio *src);
-extern int bio_alloc_pages(struct bio *bio, gfp_t gfp);
extern void bio_free_pages(struct bio *bio);
extern struct bio *bio_copy_user_iov(struct request_queue *,