diff options
| author | Christoph Hellwig <hch@lst.de> | 2021-08-04 11:56:25 +0200 |
|---|---|---|
| committer | Jens Axboe <axboe@kernel.dk> | 2021-08-16 10:50:32 -0600 |
| commit | fbc27241e537d3a99d0f843a4080e1d2fb014fb4 (patch) | |
| tree | e2b3442a0a0f442dc814d3054d491d51123a536f /fs/squashfs/lz4_wrapper.c | |
| parent | 964cacfdd34cd48e3b5b714c3cc33427001e843f (diff) | |
| download | cachepc-linux-fbc27241e537d3a99d0f843a4080e1d2fb014fb4.tar.gz cachepc-linux-fbc27241e537d3a99d0f843a4080e1d2fb014fb4.zip | |
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/lz4_wrapper.c')
| -rw-r--r-- | fs/squashfs/lz4_wrapper.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/squashfs/lz4_wrapper.c b/fs/squashfs/lz4_wrapper.c index 233d5582fbee..b685b6238316 100644 --- a/fs/squashfs/lz4_wrapper.c +++ b/fs/squashfs/lz4_wrapper.c @@ -101,7 +101,7 @@ static int lz4_uncompress(struct squashfs_sb_info *msblk, void *strm, while (bio_next_segment(bio, &iter_all)) { int avail = min(bytes, ((int)bvec->bv_len) - offset); - data = page_address(bvec->bv_page) + bvec->bv_offset; + data = bvec_virt(bvec); memcpy(buff, data + offset, avail); buff += avail; bytes -= avail; |
