diff options
| author | Timothy Day <timday@thelustrecollective.com> | 2026-08-11 12:03:29 -0400 |
|---|---|---|
| committer | Jan Kara <jack@suse.cz> | 2026-09-01 15:40:36 +0200 |
| commit | e76ed86ee88f68f19a3ada75de2192d7fbb3ac99 (patch) | |
| tree | f2b3b018fa68bfd92fc32ec6ffebdb4910e9817e /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 127b0d87649f946198b80f05ae62123dd87bc6f4 (diff) | |
| download | linux-e76ed86ee88f68f19a3ada75de2192d7fbb3ac99.tar.gz linux-e76ed86ee88f68f19a3ada75de2192d7fbb3ac99.zip | |
ext2: mark s_next_generation as guarded by s_next_gen_lock
s_next_generation is only ever modified while holding s_next_gen_lock
(in ext2_new_inode()), so annotate it with __guarded_by() for Clang's
context analysis.
The only other write is the initialisation in ext2_fill_super(), which
runs before the superblock is live. No concurrent access should be
possible. Convert the spinlock initialization to use
scoped_guard(spinlock_init, ...) and place the write under the guard
to prevent a warning.
Signed-off-by: Timothy Day <timday@thelustrecollective.com>
Acked-by: Marco Elver <elver@google.com>
Link: https://patch.msgid.link/20260811160336.782342-2-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
