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>
Showing
- block/bio.c 0 additions, 28 deletionsblock/bio.c
- drivers/md/bcache/btree.c 1 addition, 1 deletiondrivers/md/bcache/btree.c
- drivers/md/bcache/debug.c 1 addition, 1 deletiondrivers/md/bcache/debug.c
- drivers/md/bcache/movinggc.c 1 addition, 1 deletiondrivers/md/bcache/movinggc.c
- drivers/md/bcache/request.c 1 addition, 1 deletiondrivers/md/bcache/request.c
- drivers/md/bcache/util.c 27 additions, 0 deletionsdrivers/md/bcache/util.c
- drivers/md/bcache/util.h 1 addition, 0 deletionsdrivers/md/bcache/util.h
- drivers/md/bcache/writeback.c 1 addition, 1 deletiondrivers/md/bcache/writeback.c
- include/linux/bio.h 0 additions, 1 deletioninclude/linux/bio.h
Please register or sign in to comment