1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/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 License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
fsnotify.c fsnotify: use accessor to set FMODE_NONOTIFY_* 2025-02-07 10:27:26 +01:00
fsnotify.h fsnotify: clear PARENT_WATCHED flags lazily 2024-06-05 09:52:38 +02:00
group.c inotify: Fix possible deadlock in fsnotify_destroy_mark 2024-10-02 15:14:29 +02:00
Kconfig fs/notify: Remove "select SRCU" 2023-02-02 16:26:06 -08:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
mark.c fsnotify: Fix ordering of iput() and watched_objects decrement 2024-11-18 17:33:13 +01:00
notification.c fsnotify: Pass group argument to free_event 2021-10-27 12:34:18 +02:00