diff options
| author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2026-05-22 21:14:09 +0300 |
|---|---|---|
| committer | Johannes Thumshirn <johannes.thumshirn@wdc.com> | 2026-06-09 19:22:44 +0300 |
| commit | 3f1cc3620e5050e601e6ae09f49b9dbcd146dd8b (patch) | |
| tree | 4520b6850c006d5e4744607674258ca3803caf39 | |
| parent | 03f1fc95a7f7857496ec3d7b283a8487a3d3c341 (diff) | |
| download | linux-3f1cc3620e5050e601e6ae09f49b9dbcd146dd8b.tar.xz | |
btrfs: use bvec_phys() in compressed_bio_last_folio()
This is open-coded bvec_phys(), also remove direct use of bv_page.
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: Boris Burkov <boris@bur.io>
Tested-by: Boris Burkov <boris@bur.io>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: David Sterba <dsterba@suse.com>
| -rw-r--r-- | fs/btrfs/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c index 973a89301baa..9ce620085467 100644 --- a/fs/btrfs/inode.c +++ b/fs/btrfs/inode.c @@ -820,7 +820,7 @@ static struct folio *compressed_bio_last_folio(struct compressed_bio *cb) ASSERT(bio->bi_vcnt); bvec = &bio->bi_io_vec[bio->bi_vcnt - 1]; - paddr = page_to_phys(bvec->bv_page) + bvec->bv_offset + bvec->bv_len - 1; + paddr = bvec_phys(bvec) + bvec->bv_len - 1; return page_folio(phys_to_page(paddr)); } |
