summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTimothy Day <timday@thelustrecollective.com>2026-08-11 12:03:32 -0400
committerJan Kara <jack@suse.cz>2026-09-01 15:40:36 +0200
commit023051c2d0f1d782da1bd0b09092f31592b46f3a (patch)
treee737352f3264a8551be590af677570550125fe22 /tools/perf/scripts/python
parent3d0c4287b70c880ab15196dfe4e4f9f9eb1dc9b3 (diff)
downloadlinux-023051c2d0f1d782da1bd0b09092f31592b46f3a.tar.gz
linux-023051c2d0f1d782da1bd0b09092f31592b46f3a.zip
ext2: mark s_mount_state as guarded by s_lock
s_mount_state tracks the filesystem's mount/error state and is protected by s_lock everywhere it is accessed. Annotate it with __guarded_by() for Clang's context analysis. ext2_setup_super() reads s_mount_state and is called with s_lock held from the remount path, so annotate it with __must_hold(). There are two accesses (the initial read in ext2_fill_super() and the setup_super() call) in the mount flow. This is before the superblock is live, so no concurrent access should be possible. Convert the spinlock initialization to use guard(spinlock_init) to prevent warnings on the writes later in initialization. Signed-off-by: Timothy Day <timday@thelustrecollective.com> Acked-by: Marco Elver <elver@google.com> Link: https://patch.msgid.link/20260811160336.782342-5-timday@thelustrecollective.com Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions