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:
Eric Paris
2010-07-28 10:18:39 -04:00
parent 43709a288e
commit 02436668d9
5 changed files with 2 additions and 143 deletions

View File

@@ -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