diff options
| author | 2026-08-11 12:03:34 -0400 | |
|---|---|---|
| committer | 2026-09-01 15:40:36 +0200 | |
| commit | d8c906454fde090a45edaf136f93aa2af720e5fa (patch) | |
| tree | 2025065f7f05ceaf46061d682007f1c728fb0a35 /scripts/Makefile.thinlto | |
| parent | ext2: annotate ext2_init_block_alloc_info() as requiring truncate_mutex (diff) | |
ext2: annotate block-mapping helpers as requiring truncate_mutex
The indirect-block mapping helpers in inode.c all run under the
inode's truncate_mutex.
ext2_find_goal(), ext2_alloc_blocks(), ext2_alloc_branch() and
ext2_splice_branch() are reached only from ext2_get_blocks() while
it holds the mutex. ext2_find_shared(), ext2_free_data() and
ext2_free_branches() are called from __ext2_truncate_blocks() while
it holds the mutex.
Add __must_hold() annotations for the Clang's context analysis to reflect
this.
Signed-off-by: Timothy Day <timday@thelustrecollective.com>
Acked-by: Marco Elver <elver@google.com>
Link: https://patch.msgid.link/20260811160336.782342-7-timday@thelustrecollective.com
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
