fsnotify: remove the global masks
Because we walk the object->fsnotify_marks list instead of the global fsnotify groups list we don't need the fsnotify_inode_mask and fsnotify_vfsmount_mask as these were simply shortcuts in fsnotify() for performance. They are now extra checks, rip them out. Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
@@ -227,11 +227,6 @@ int fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is,
|
||||
if (mask & FS_MODIFY)
|
||||
__fsnotify_flush_ignored_mask(to_tell, data, data_is);
|
||||
|
||||
/* if none of the directed listeners or vfsmount listeners care */
|
||||
if (!(test_mask & fsnotify_inode_mask) &&
|
||||
!(test_mask & fsnotify_vfsmount_mask))
|
||||
return 0;
|
||||
|
||||
if (data_is == FSNOTIFY_EVENT_FILE)
|
||||
mnt = ((struct file *)data)->f_path.mnt;
|
||||
|
||||
|
Reference in New Issue
Block a user