diff options
| author | Qu Wenruo <wqu@suse.com> | 2025-01-28 07:56:42 +0300 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2025-03-18 22:35:41 +0300 |
| commit | f64e81815377c943c2869415c48d4378f8dea58f (patch) | |
| tree | e3cdd57a82d0d35b94726cadcb34c47c5d15805c /tools/perf/scripts/python/check-perf-trace.py | |
| parent | 619611e87fcca1fdaa67c2bf6b030863ab90216e (diff) | |
| download | linux-f64e81815377c943c2869415c48d4378f8dea58f.tar.xz | |
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 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions
