]> git.ipfire.org Git - thirdparty/linux.git/commit
fsnotify: Use connector list for destroying inode marks
authorJan Kara <jack@suse.cz>
Wed, 15 Oct 2025 14:02:47 +0000 (16:02 +0200)
committerJan Kara <jack@suse.cz>
Fri, 23 Jan 2026 12:26:37 +0000 (13:26 +0100)
commita05fc7edd988c176491487ef0ae4dbf5f7a64cd7
treeafe7b8e555f1ff413c5c46a4070c43c115be2af2
parent94bd01253c3d5b1cd8955bdadeed24af02088094
fsnotify: Use connector list for destroying inode marks

Instead of iterating all inodes belonging to a superblock to find inode
marks and remove them on umount, iterate all inode connectors for the
superblock. This may be substantially faster since there are generally
much less inodes with fsnotify marks than all inodes. It also removes
one use of sb->s_inodes list which we strive to ultimately remove.

Reviewed-by: Amir Goldstein <amir73il@gmail.com>
Reviewed-by: Christian Brauner <brauner@kernel.org>
Signed-off-by: Jan Kara <jack@suse.cz>
fs/notify/fsnotify.c
fs/notify/fsnotify.h
fs/notify/mark.c