aboutsummaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2021-02-04 15:03:24 +0800
committerDavid Sterba <[email protected]>2021-02-22 17:15:27 +0100
commit04d4ba4c90759844fb4ffa735214c1c41508d2f7 (patch)
tree5051352ad48a4aa9310497d1448ec0fad103d144 /fs/jbd2/commit.c
parentbe6a13613fd35602ea9e65d6634cf7af79f0a93d (diff)
btrfs: make check_compressed_csum() to be subpage compatible
Currently check_compressed_csum() completely relies on sectorsize == PAGE_SIZE to do checksum verification for compressed extents. To make it subpage compatible, this patch will: - Do extra calculation for the csum range Since we have multiple sectors inside a page, we need to only hash the range we want, not the full page anymore. - Do sector-by-sector hash inside the page With this patch and previous conversion on btrfs_submit_compressed_read(), now we can read subpage compressed extents properly, and do proper csum verification. Reviewed-by: Anand Jain <[email protected]> Signed-off-by: Qu Wenruo <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions