aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fsnotify_backend.h
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 /include/linux/fsnotify_backend.h
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 'include/linux/fsnotify_backend.h')
-rw-r--r--include/linux/fsnotify_backend.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h
index c4e7aab87461..2e7cc8c2a151 100644
--- a/include/linux/fsnotify_backend.h
+++ b/include/linux/fsnotify_backend.h
@@ -109,17 +109,6 @@ struct fsnotify_ops {
109 */ 109 */
110struct fsnotify_group { 110struct fsnotify_group {
111 /* 111 /*
112 * global list of all groups receiving events from fsnotify.
113 * anchored by fsnotify_inode_groups and protected by either fsnotify_grp_mutex
114 * or fsnotify_grp_srcu depending on write vs read.
115 */
116 struct list_head inode_group_list;
117 /*
118 * same as above except anchored by fsnotify_vfsmount_groups
119 */
120 struct list_head vfsmount_group_list;
121
122 /*
123 * How the refcnt is used is up to each group. When the refcnt hits 0 112 * How the refcnt is used is up to each group. When the refcnt hits 0
124 * fsnotify will clean up all of the resources associated with this group. 113 * fsnotify will clean up all of the resources associated with this group.
125 * As an example, the dnotify group will always have a refcnt=1 and that 114 * As an example, the dnotify group will always have a refcnt=1 and that
@@ -145,10 +134,6 @@ struct fsnotify_group {
145 * a group */ 134 * a group */
146 struct list_head marks_list; /* all inode marks for this group */ 135 struct list_head marks_list; /* all inode marks for this group */
147 136
148 /* prevents double list_del of group_list. protected by global fsnotify_grp_mutex */
149 bool on_inode_group_list;
150 bool on_vfsmount_group_list;
151
152 /* groups can define private fields here or use the void *private */ 137 /* groups can define private fields here or use the void *private */
153 union { 138 union {
154 void *private; 139 void *private;