Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

fs: add super_write_guard

Link: https://patch.msgid.link/20251104-work-guards-v1-1-5108ac78a171@kernel.org
Reviewed-by: Jan Kara <jack@suse.cz>
Signed-off-by: Christian Brauner <brauner@kernel.org>

+5
+5
include/linux/fs/super.h
··· 125 125 __sb_start_write(sb, SB_FREEZE_WRITE); 126 126 } 127 127 128 + DEFINE_GUARD(super_write, 129 + struct super_block *, 130 + sb_start_write(_T), 131 + sb_end_write(_T)) 132 + 128 133 static inline bool sb_start_write_trylock(struct super_block *sb) 129 134 { 130 135 return __sb_start_write_trylock(sb, SB_FREEZE_WRITE);