diff options
author | Amir Goldstein <amir73il@gmail.com> | 2022-04-22 14:03:13 +0200 |
---|---|---|
committer | Jan Kara <jack@suse.cz> | 2022-04-25 14:37:06 +0200 |
commit | 38035c04f5865c4ef9597d6beed6a7178f90f64a (patch) | |
tree | f77e39bb7ffad2ecd03eb2bb1461d21e9f16c5b5 /fs/notify/inotify/inotify_fsnotify.c | |
parent | inotify: show inotify mask flags in proc fdinfo (diff) | |
download | linux-38035c04f5865c4ef9597d6beed6a7178f90f64a.tar.xz linux-38035c04f5865c4ef9597d6beed6a7178f90f64a.zip |
inotify: move control flags from mask to mark flags
The inotify control flags in the mark mask (e.g. FS_IN_ONE_SHOT) are not
relevant to object interest mask, so move them to the mark flags.
This frees up some bits in the object interest mask.
Link: https://lore.kernel.org/r/20220422120327.3459282-3-amir73il@gmail.com
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'fs/notify/inotify/inotify_fsnotify.c')
-rw-r--r-- | fs/notify/inotify/inotify_fsnotify.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c index d92d7b0adc9a..49cfe2ae6d23 100644 --- a/fs/notify/inotify/inotify_fsnotify.c +++ b/fs/notify/inotify/inotify_fsnotify.c @@ -122,7 +122,7 @@ int inotify_handle_inode_event(struct fsnotify_mark *inode_mark, u32 mask, fsnotify_destroy_event(group, fsn_event); } - if (inode_mark->mask & IN_ONESHOT) + if (inode_mark->flags & FSNOTIFY_MARK_FLAG_IN_ONESHOT) fsnotify_destroy_mark(inode_mark, group); return 0; |