aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/async-thread.c
diff options
context:
space:
mode:
authorQu Wenruo <[email protected]>2025-01-29 03:59:30 +0000
committerDavid Sterba <[email protected]>2025-03-18 19:35:42 +0000
commitfcc384be06aa28d246ace6ca38c8d2b8eb4bf5a4 (patch)
treef23222e3d58ab395f0df1323922236cb6a404bd0 /fs/btrfs/async-thread.c
parentbtrfs: simplify subpage handling of read_extent_buffer_pages_nowait() (diff)
downloadkernel-fcc384be06aa28d246ace6ca38c8d2b8eb4bf5a4.tar.gz
kernel-fcc384be06aa28d246ace6ca38c8d2b8eb4bf5a4.zip
btrfs: require strict data/metadata split for subpage checks
Since we have btrfs_meta_is_subpage(), we should make btrfs_is_subpage() to be data inode specific. This change involves: - Simplify btrfs_is_subpage() Now we only need to do a very simple sectorsize check against PAGE_SIZE. And since the function is pretty simple now, just make it an inline function. - Add an extra ASSERT() to make sure btrfs_is_subpage() is only called on data inode mapping - Migrate btree_csum_one_bio() to use btrfs_meta_folio_*() helpers - Migrate alloc_extent_buffer() to use btrfs_meta_folio_*() helpers - Migrate end_bbio_meta_write() to use btrfs_meta_folio_*() helpers Or we will trigger the ASSERT() due to calling btrfs_folio_*() on metadata folios. 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/async-thread.c')
0 files changed, 0 insertions, 0 deletions