diff options
| author | Amir Goldstein <[email protected]> | 2025-07-08 14:36:40 +0000 |
|---|---|---|
| committer | Jan Kara <[email protected]> | 2025-07-28 16:14:38 +0000 |
| commit | 08da98e1b2f76cdbacf84b9affaa75960dbce515 (patch) | |
| tree | df25e6a4bfa465c8a16f589452611e33d330a52f /fs/file_table.c | |
| parent | samples: fix building fs-monitor on musl systems (diff) | |
| download | kernel-08da98e1b2f76cdbacf84b9affaa75960dbce515.tar.gz kernel-08da98e1b2f76cdbacf84b9affaa75960dbce515.zip | |
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 <[email protected]>
Signed-off-by: Jan Kara <[email protected]>
Link: https://patch.msgid.link/[email protected]
Diffstat (limited to 'fs/file_table.c')
| -rw-r--r-- | fs/file_table.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/file_table.c b/fs/file_table.c index 138114d64307..14ee3581c768 100644 --- a/fs/file_table.c +++ b/fs/file_table.c @@ -196,7 +196,7 @@ static int init_file(struct file *f, int flags, const struct cred *cred) file_ref_init(&f->f_ref, 1); /* * Disable permission and pre-content events for all files by default. - * They may be enabled later by file_set_fsnotify_mode_from_watchers(). + * They may be enabled later by fsnotify_open_perm_and_set_mode(). */ file_set_fsnotify_mode(f, FMODE_NONOTIFY_PERM); return 0; |
