block: move bio_alloc_pages() to bcache
authorMing Lei <ming.lei@redhat.com>
Mon, 18 Dec 2017 12:22:10 +0000 (20:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Sat, 6 Jan 2018 16:18:00 +0000 (09:18 -0700)
commit25d8be77e19224d8f21b363d77b5283c5dc21a57
tree4a07629635d9e2109caca1c0418208fc167f8082
parentc2421edf5f9151d0eb28affbf76e9e4f8ddd03c6
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>
block/bio.c
drivers/md/bcache/btree.c
drivers/md/bcache/debug.c
drivers/md/bcache/movinggc.c
drivers/md/bcache/request.c
drivers/md/bcache/util.c
drivers/md/bcache/util.h
drivers/md/bcache/writeback.c
include/linux/bio.h