summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorTimothy Day <timday@thelustrecollective.com>2026-08-11 12:03:35 -0400
committerJan Kara <jack@suse.cz>2026-09-03 14:41:32 +0200
commitc23746524fafe992e594d84f432534dabf4daf20 (patch)
treee9decebc5b5e9dd3ef2ca6caa1a1ebe40450813b /tools/perf/scripts/python/bin/stackcollapse-record
parentd8c906454fde090a45edaf136f93aa2af720e5fa (diff)
downloadlinux-c23746524fafe992e594d84f432534dabf4daf20.tar.gz
linux-c23746524fafe992e594d84f432534dabf4daf20.zip
ext2: annotate s_rsv_window_root as requiring s_rsv_window_lock
The per-filesystem reservation window rb-tree (s_rsv_window_root) is protected by s_rsv_window_lock. Mark the s_rsv_window_root field with __guarded_by() for Clang's context analysis. The helpers (ext2_rsv_window_add, rsv_window_remove, and find_next_reservable_window) that mutate or walk the tree are all called with the s_rsv_window_lock held. Annotate these helpers with __must_hold(). The accesses in ext2_fill_super() are before the superblock is live. Since no concurrent access should be possible, s_rsv_window_lock is not taken. Convert the spinlock initialization to use scoped_guard(spinlock_init, ...) and place the writes under the guard to prevent warnings. Signed-off-by: Timothy Day <timday@thelustrecollective.com> Acked-by: Marco Elver <elver@google.com> Link: https://patch.msgid.link/20260811160336.782342-8-timday@thelustrecollective.com Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions