Jan, Following v2 addresses your review comments on v1 [1]. Changes since v1: - Raname macro to FMODE_NOTIFY_ACCESS_PERM() - Remove unneeded and unused event set macros [1] https://lore.kernel.org/linux-fsdevel/20250707170704.303772-1-amir73il@xxxxxxxxx/ Amir Goldstein (2): fsnotify: merge file_set_fsnotify_mode_from_watchers() with open perm hook fsnotify: optimize FMODE_NONOTIFY_PERM for the common cases fs/file_table.c | 2 +- fs/notify/fsnotify.c | 87 ++++++++++++++++++++++++---------------- fs/open.c | 6 +-- include/linux/fs.h | 12 +++--- include/linux/fsnotify.h | 35 +++------------- 5 files changed, 68 insertions(+), 74 deletions(-) -- 2.43.0