aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/fsnotify.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-07-28 10:18:39 -0400
committerEric Paris <eparis@redhat.com>2010-07-28 10:18:54 -0400
commit02436668d98385f5b5d9ffb695a37dadf98ed8a8 (patch)
treee0e37328a9ba5c0af49903114fffd82f2141180d /fs/notify/fsnotify.c
parent43709a288ed03aa0e2979ab63dd089b3889645c4 (diff)
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>
Diffstat (limited to 'fs/notify/fsnotify.c')
-rw-r--r--fs/notify/fsnotify.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/fs/notify/fsnotify.c b/fs/notify/fsnotify.c
index 9ba29ee747cf..1dd1fde1da08 100644
--- a/fs/notify/fsnotify.c
+++ b/fs/notify/fsnotify.c
@@ -219,11 +219,6 @@ int fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is,
219 /* global tests shouldn't care about events on child only the specific event */ 219 /* global tests shouldn't care about events on child only the specific event */
220 __u32 test_mask = (mask & ~FS_EVENT_ON_CHILD); 220 __u32 test_mask = (mask & ~FS_EVENT_ON_CHILD);
221 221
222 /* if no fsnotify listeners, nothing to do */
223 if (list_empty(&fsnotify_inode_groups) &&
224 list_empty(&fsnotify_vfsmount_groups))
225 return 0;
226
227 if (mask & FS_MODIFY) 222 if (mask & FS_MODIFY)
228 __fsnotify_flush_ignored_mask(to_tell, data, data_is); 223 __fsnotify_flush_ignored_mask(to_tell, data, data_is);
229 224