]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
fsnotify: merge file_set_fsnotify_mode_from_watchers() with open perm hook
authorAmir Goldstein <amir73il@gmail.com>
Tue, 8 Jul 2025 14:36:40 +0000 (16:36 +0200)
committerJan Kara <jack@suse.cz>
Mon, 28 Jul 2025 16:14:38 +0000 (18:14 +0200)
commit08da98e1b2f76cdbacf84b9affaa75960dbce515
treedf25e6a4bfa465c8a16f589452611e33d330a52f
parent3193e8942fc7f70ba3c872a988a0c15f98818bd2
fsnotify: merge file_set_fsnotify_mode_from_watchers() with open perm hook

Create helper fsnotify_open_perm_and_set_mode() that moves the
fsnotify_open_perm() hook into file_set_fsnotify_mode_from_watchers().

This will allow some more optimizations.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Link: https://patch.msgid.link/20250708143641.418603-2-amir73il@gmail.com
fs/file_table.c
fs/notify/fsnotify.c
fs/open.c
include/linux/fsnotify.h