]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitca68cdc8f7cd8063fd6c01380e2de6816b110cf7
tree4a07629635d9e2109caca1c0418208fc167f8082
parenta73bdc979b6f69c2eaeebec8d8835f91dbb179c8
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