diff options
author | Ming Lei <ming.lei@redhat.com> | 2017-12-18 13:22:10 +0100 |
---|---|---|
committer | Jens Axboe <axboe@kernel.dk> | 2018-01-06 17:18:00 +0100 |
commit | 25d8be77e19224d8f21b363d77b5283c5dc21a57 (patch) | |
tree | 4a07629635d9e2109caca1c0418208fc167f8082 /drivers/md/bcache/debug.c | |
parent | bcache: comment on direct access to bvec table (diff) | |
download | linux-25d8be77e19224d8f21b363d77b5283c5dc21a57.tar.xz 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 'drivers/md/bcache/debug.c')
-rw-r--r-- | drivers/md/bcache/debug.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/md/bcache/debug.c b/drivers/md/bcache/debug.c index c7a02c4900da..879ab21074c6 100644 --- a/drivers/md/bcache/debug.c +++ b/drivers/md/bcache/debug.c @@ -116,7 +116,7 @@ void bch_data_verify(struct cached_dev *dc, struct bio *bio) return; check->bi_opf = REQ_OP_READ; - if (bio_alloc_pages(check, GFP_NOIO)) + if (bch_bio_alloc_pages(check, GFP_NOIO)) goto out_put; submit_bio_wait(check); |