Skip to content

Commit d042a24

Browse files
committed
Merge tag 'for_v4.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs
Pull fsnotify fix from Jan Kara: "A small fsnotify fix from Amir" * tag 'for_v4.19-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/jack/linux-fs: fsnotify: fix ignore mask logic in fsnotify()
2 parents 4ff8a14 + 9bdda4e commit d042a24

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

fs/notify/fsnotify.c

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -351,16 +351,9 @@ int fsnotify(struct inode *to_tell, __u32 mask, const void *data, int data_is,
351351

352352
iter_info.srcu_idx = srcu_read_lock(&fsnotify_mark_srcu);
353353

354-
if ((mask & FS_MODIFY) ||
355-
(test_mask & to_tell->i_fsnotify_mask)) {
356-
iter_info.marks[FSNOTIFY_OBJ_TYPE_INODE] =
357-
fsnotify_first_mark(&to_tell->i_fsnotify_marks);
358-
}
359-
360-
if (mnt && ((mask & FS_MODIFY) ||
361-
(test_mask & mnt->mnt_fsnotify_mask))) {
362-
iter_info.marks[FSNOTIFY_OBJ_TYPE_INODE] =
363-
fsnotify_first_mark(&to_tell->i_fsnotify_marks);
354+
iter_info.marks[FSNOTIFY_OBJ_TYPE_INODE] =
355+
fsnotify_first_mark(&to_tell->i_fsnotify_marks);
356+
if (mnt) {
364357
iter_info.marks[FSNOTIFY_OBJ_TYPE_VFSMOUNT] =
365358
fsnotify_first_mark(&mnt->mnt_fsnotify_marks);
366359
}

0 commit comments

Comments
 (0)