summaryrefslogtreecommitdiff
path: root/fs/squashfs/zstd_wrapper.c
diff options
context:
space:
mode:
authorChristoph Hellwig <hch@lst.de>2021-08-04 12:56:25 +0300
committerJens Axboe <axboe@kernel.dk>2021-08-16 19:50:32 +0300
commitfbc27241e537d3a99d0f843a4080e1d2fb014fb4 (patch)
treee2b3442a0a0f442dc814d3054d491d51123a536f /fs/squashfs/zstd_wrapper.c
parent964cacfdd34cd48e3b5b714c3cc33427001e843f (diff)
downloadlinux-fbc27241e537d3a99d0f843a4080e1d2fb014fb4.tar.xz
squashfs: use bvec_virt
Use bvec_virt instead of open coding it. Signed-off-by: Christoph Hellwig <hch@lst.de> Link: https://lore.kernel.org/r/20210804095634.460779-7-hch@lst.de Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'fs/squashfs/zstd_wrapper.c')
-rw-r--r--fs/squashfs/zstd_wrapper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/squashfs/zstd_wrapper.c b/fs/squashfs/zstd_wrapper.c
index b7cb1faa652d..0015cf8b5582 100644
--- a/fs/squashfs/zstd_wrapper.c
+++ b/fs/squashfs/zstd_wrapper.c
@@ -94,7 +94,7 @@ static int zstd_uncompress(struct squashfs_sb_info *msblk, void *strm,
}
avail = min(length, ((int)bvec->bv_len) - offset);
- data = page_address(bvec->bv_page) + bvec->bv_offset;
+ data = bvec_virt(bvec);
length -= avail;
in_buf.src = data + offset;
in_buf.size = avail;