aboutsummaryrefslogtreecommitdiffstats
path: root/fs/notify/inotify/inotify_fsnotify.c
diff options
context:
space:
mode:
authorEric Paris <eparis@redhat.com>2010-07-28 10:18:38 -0400
committerEric Paris <eparis@redhat.com>2010-07-28 10:18:52 -0400
commit3a9b16b407f10b2a771bcae13fb5791e527d6bcf (patch)
tree0d88cac61bd6d3f5028eb0c9a45e7af9fbd24311 /fs/notify/inotify/inotify_fsnotify.c
parent8778abb9a88fc4a74d8776ffaadf7214cf33c61e (diff)
fsnotify: send fsnotify_mark to groups in event handling functions
With the change of fsnotify to use srcu walking the marks list instead of walking the global groups list we now know the mark in question. The code can send the mark to the group's handling functions and the groups won't have to find those marks themselves. Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'fs/notify/inotify/inotify_fsnotify.c')
-rw-r--r--fs/notify/inotify/inotify_fsnotify.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/fs/notify/inotify/inotify_fsnotify.c b/fs/notify/inotify/inotify_fsnotify.c
index 3c506e0364cc..dbd76bbb3e21 100644
--- a/fs/notify/inotify/inotify_fsnotify.c
+++ b/fs/notify/inotify/inotify_fsnotify.c
@@ -89,7 +89,9 @@ static struct fsnotify_event *inotify_merge(struct list_head *list,
89 return last_event; 89 return last_event;
90} 90}
91 91
92static int inotify_handle_event(struct fsnotify_group *group, struct fsnotify_event *event) 92static int inotify_handle_event(struct fsnotify_group *group,
93 struct fsnotify_mark *mark,
94 struct fsnotify_event *event)
93{ 95{
94 struct fsnotify_mark *fsn_mark; 96 struct fsnotify_mark *fsn_mark;
95 struct inotify_inode_mark *i_mark; 97 struct inotify_inode_mark *i_mark;
@@ -148,8 +150,8 @@ static void inotify_freeing_mark(struct fsnotify_mark *fsn_mark, struct fsnotify
148} 150}
149 151
150static bool inotify_should_send_event(struct fsnotify_group *group, struct inode *inode, 152static bool inotify_should_send_event(struct fsnotify_group *group, struct inode *inode,
151 struct vfsmount *mnt, __u32 mask, void *data, 153 struct vfsmount *mnt, struct fsnotify_mark *mark,
152 int data_type) 154 __u32 mask, void *data, int data_type)
153{ 155{
154 struct fsnotify_mark *fsn_mark; 156 struct fsnotify_mark *fsn_mark;
155 bool send; 157 bool send;