aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/compression.c
diff options
context:
space:
mode:
authorChristoph Hellwig <[email protected]>2025-04-09 11:10:41 +0000
committerDavid Sterba <[email protected]>2025-05-15 12:30:47 +0000
commitadbfd189c4695862c464da87b3e574241452d73d (patch)
tree3f381aeab4e6cd8cbfe9e6a4cb6529591e4c4e37 /fs/btrfs/compression.c
parentbtrfs: raid56: store a physical address in structure sector_ptr (diff)
downloadkernel-adbfd189c4695862c464da87b3e574241452d73d.tar.gz
kernel-adbfd189c4695862c464da87b3e574241452d73d.zip
btrfs: scrub: use virtual addresses directly
Instead of the old @page and @page_offset pair inside scrub, here we can directly use the virtual address for a sector. This has the following benefit: - Simplified parameters A single @kaddr will repair @page and @page_offset. - No more unnecessary kmap/kunmap calls Since all pages utilized by scrub is allocated by scrub, and no highmem is allowed, we do not need to do any kmap/kunmap. And add an ASSERT() inside the new scrub_stripe_get_kaddr() to catch any unexpected highmem page. Reviewed-by: Josef Bacik <[email protected]> Signed-off-by: Christoph Hellwig <[email protected]> Reviewed-by: Qu Wenruo <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Reviewed-by: David Sterba <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/compression.c')
0 files changed, 0 insertions, 0 deletions