summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@redhat.com>2017-12-18 20:22:04 +0800
committerJens Axboe <axboe@kernel.dk>2018-01-06 09:18:00 -0700
commit263663cd3c4fbfc40cb7504c4be2dadbc0992cc1 (patch)
tree6a22bd3907dd38d8a7c57862311ca4deff521064 /fs/btrfs/compression.c
parent86292abc5af206f64192a0b60da06fd604debdc0 (diff)
downloadlinux-263663cd3c4fbfc40cb7504c4be2dadbc0992cc1.tar.gz
linux-263663cd3c4fbfc40cb7504c4be2dadbc0992cc1.tar.bz2
linux-263663cd3c4fbfc40cb7504c4be2dadbc0992cc1.zip
block: convert to bio_first_bvec_all & bio_first_page_all
This patch converts to bio_first_bvec_all() & bio_first_page_all() for retrieving the 1st bvec/page, and prepares for supporting multipage bvec. Signed-off-by: Ming Lei <ming.lei@redhat.com> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/btrfs/compression.c')
-rw-r--r--fs/btrfs/compression.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/compression.c b/fs/btrfs/compression.c
index 5982c8a71f02..38a6b091bc25 100644
--- a/fs/btrfs/compression.c
+++ b/fs/btrfs/compression.c
@@ -563,7 +563,7 @@ blk_status_t btrfs_submit_compressed_read(struct inode *inode, struct bio *bio,
/* we need the actual starting offset of this extent in the file */
read_lock(&em_tree->lock);
em = lookup_extent_mapping(em_tree,
- page_offset(bio->bi_io_vec->bv_page),
+ page_offset(bio_first_page_all(bio)),
PAGE_SIZE);
read_unlock(&em_tree->lock);
if (!em)