linux-stable/fs/notify
Amir Goldstein 95101401bb
fsnotify: use accessor to set FMODE_NONOTIFY_*
The FMODE_NONOTIFY_* bits are a 2-bits mode.  Open coding manipulation
of those bits is risky.  Use an accessor file_set_fsnotify_mode() to
set the mode.

Rename file_set_fsnotify_mode() => file_set_fsnotify_mode_from_watchers()
to make way for the simple accessor name.

Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Link: https://lore.kernel.org/r/20250203223205.861346-2-amir73il@gmail.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
2025-02-07 10:27:26 +01:00
..
dnotify treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
fanotify treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
inotify treewide: const qualify ctl_tables where applicable 2025-01-28 13:48:37 +01:00
fdinfo.c fs: relax assertions on failure to encode file handles 2024-12-19 15:18:27 +01:00
fdinfo.h
fsnotify.c fsnotify: use accessor to set FMODE_NONOTIFY_* 2025-02-07 10:27:26 +01:00
fsnotify.h
group.c
Kconfig
Makefile
mark.c fsnotify: Fix ordering of iput() and watched_objects decrement 2024-11-18 17:33:13 +01:00
notification.c