aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/fsnotify.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2009-12-17 21:24:23 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:51 -0400
commit19c2a0e1a2f60112c158342ba5f568f72b741c2c (patch)
tree807520e66657e25420389c376cccaf5ca283f346 /fs/notify/fsnotify.c
parent0d2e2a1d00d7d23e5bd9bb0935cde7c3d5835c56 (diff)
fsnotify: rename fsnotify_groups to fsnotify_inode_groups
Simple renaming patch. fsnotify is about to support mount point listeners so I am renaming fsnotify_groups and fsnotify_mask to indicate these are lists used only for groups which have watches on inodes. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/fsnotify.c')
-rw-r--r--fs/notify/fsnotify.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/notify/fsnotify.c b/fs/notify/fsnotify.c
index 806beede24a3..23b5cfbeed50 100644
--- a/fs/notify/fsnotify.c
+++ b/fs/notify/fsnotify.c
@@ -148,10 +148,10 @@ void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, const
148 /* global tests shouldn't care about events on child only the specific event */ 148 /* global tests shouldn't care about events on child only the specific event */
149 __u32 test_mask = (mask & ~FS_EVENT_ON_CHILD); 149 __u32 test_mask = (mask & ~FS_EVENT_ON_CHILD);
150 150
151 if (list_empty(&fsnotify_groups)) 151 if (list_empty(&fsnotify_inode_groups))
152 return; 152 return;
153 153
154 if (!(test_mask & fsnotify_mask)) 154 if (!(test_mask & fsnotify_inode_mask))
155 return; 155 return;
156 156
157 if (!(test_mask & to_tell->i_fsnotify_mask)) 157 if (!(test_mask & to_tell->i_fsnotify_mask))
@@ -162,7 +162,7 @@ void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, const
162 * anything other than walk the list so it's crazy to pre-allocate. 162 * anything other than walk the list so it's crazy to pre-allocate.
163 */ 163 */
164 idx = srcu_read_lock(&fsnotify_grp_srcu); 164 idx = srcu_read_lock(&fsnotify_grp_srcu);
165 list_for_each_entry_rcu(group, &fsnotify_groups, group_list) { 165 list_for_each_entry_rcu(group, &fsnotify_inode_groups, inode_group_list) {
166 if (test_mask & group->mask) { 166 if (test_mask & group->mask) {
167 if (!group->ops->should_send_event(group, to_tell, mask, 167 if (!group->ops->should_send_event(group, to_tell, mask,
168 data, data_is)) 168 data, data_is))