aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md/bcache/util.h
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 /drivers/md/bcache/util.h
parentbcache: comment on direct access to bvec table (diff)
downloadlinux-dev-25d8be77e19224d8f21b363d77b5283c5dc21a57.tar.xz
linux-dev-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 'drivers/md/bcache/util.h')
-rw-r--r--drivers/md/bcache/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/md/bcache/util.h b/drivers/md/bcache/util.h
index ed5e8a412eb8..4df4c5c1cab2 100644
--- a/drivers/md/bcache/util.h
+++ b/drivers/md/bcache/util.h
@@ -558,6 +558,7 @@ static inline unsigned fract_exp_two(unsigned x, unsigned fract_bits)
}
void bch_bio_map(struct bio *bio, void *base);
+int bch_bio_alloc_pages(struct bio *bio, gfp_t gfp_mask);
static inline sector_t bdev_sectors(struct block_device *bdev)
{