summaryrefslogtreecommitdiff
path: root/rust/helpers/task.c
diff options
context:
space:
mode:
authorQu Wenruo <wqu@suse.com>2025-01-28 15:26:42 +1030
committerDavid Sterba <dsterba@suse.com>2025-03-18 20:35:41 +0100
commitf64e81815377c943c2869415c48d4378f8dea58f (patch)
treee3cdd57a82d0d35b94726cadcb34c47c5d15805c /rust/helpers/task.c
parent619611e87fcca1fdaa67c2bf6b030863ab90216e (diff)
btrfs: factor out metadata subpage detection into a dedicated helper
Currently we have only one btrfs_is_subpage() to cover both data and metadata. But there is a special case for metadata: - dummy extent buffer, sector size < PAGE_SIZE and node size >= PAGE_SIZE In such case, btrfs_is_subpage() will return true for extent buffer folio. But that is not correct, and that's exactly why we have some open-coded checks for functions like set_extent_buffer_uptodate() and clear_extent_buffer_uptodate(). Just extract the metadata specific checks into a helper, and replace those call sites. Signed-off-by: Qu Wenruo <wqu@suse.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions