fsnotify: remove global fsnotify groups lists
The global fsnotify groups lists were invented as a way to increase the performance of fsnotify by shortcutting events which were not interesting. With the changes to walk the object lists rather than global groups lists these shortcuts are not useful. Signed-off-by: Eric Paris <eparis@redhat.com>
This commit is contained in:
@@ -222,15 +222,6 @@ int fsnotify_add_mark(struct fsnotify_mark *mark,
|
||||
BUG_ON(inode && mnt);
|
||||
BUG_ON(!inode && !mnt);
|
||||
|
||||
/*
|
||||
* if this group isn't being testing for inode type events we need
|
||||
* to start testing
|
||||
*/
|
||||
if (inode && unlikely(list_empty(&group->inode_group_list)))
|
||||
fsnotify_add_inode_group(group);
|
||||
else if (mnt && unlikely(list_empty(&group->vfsmount_group_list)))
|
||||
fsnotify_add_vfsmount_group(group);
|
||||
|
||||
/*
|
||||
* LOCKING ORDER!!!!
|
||||
* mark->lock
|
||||
|
Reference in New Issue
Block a user