diff options
| author | Qu Wenruo <wqu@suse.com> | 2026-05-03 19:17:51 +0930 |
|---|---|---|
| committer | David Sterba <dsterba@suse.com> | 2026-06-08 15:53:32 +0200 |
| commit | 2b5e43348877bc90ee9a41e447069d9a1f023359 (patch) | |
| tree | aabe88f7be455e99d88b82393a5fdfdb712c0e3b /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 51a07ae32a6b598eafb3863dc24ae585ab01257d (diff) | |
btrfs: simplify the btree folio wait during invalidation
The btree inode is very different from regular data inodes, as the btree
inode is never exposed to user space operations.
All operations are either initiated by btrfs metadata operations, or MM
layer like memory pressure to release folios.
This means we never need to handle partial folio invalidation inside
btree_invalidate_folio().
With that said, we can slightly simplify the btree folio invalidation
by:
- Add ASSERT()s to make sure the range covers the whole folio
- Remove "if (start > end)" check
As the range always covers the full folio, that check is always
false and can be removed.
- Open code extent_invalidate_folio()
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/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
