diff options
author | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:38 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:52 -0400 |
commit | 3a9b16b407f10b2a771bcae13fb5791e527d6bcf (patch) | |
tree | 0d88cac61bd6d3f5028eb0c9a45e7af9fbd24311 /fs/notify/dnotify | |
parent | 8778abb9a88fc4a74d8776ffaadf7214cf33c61e (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/dnotify')
-rw-r--r-- | fs/notify/dnotify/dnotify.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/notify/dnotify/dnotify.c b/fs/notify/dnotify/dnotify.c index 6624c2ee8786..2cae9be120db 100644 --- a/fs/notify/dnotify/dnotify.c +++ b/fs/notify/dnotify/dnotify.c | |||
@@ -83,6 +83,7 @@ static void dnotify_recalc_inode_mask(struct fsnotify_mark *fsn_mark) | |||
83 | * events. | 83 | * events. |
84 | */ | 84 | */ |
85 | static int dnotify_handle_event(struct fsnotify_group *group, | 85 | static int dnotify_handle_event(struct fsnotify_group *group, |
86 | struct fsnotify_mark *mark, | ||
86 | struct fsnotify_event *event) | 87 | struct fsnotify_event *event) |
87 | { | 88 | { |
88 | struct fsnotify_mark *fsn_mark = NULL; | 89 | struct fsnotify_mark *fsn_mark = NULL; |
@@ -130,7 +131,8 @@ static int dnotify_handle_event(struct fsnotify_group *group, | |||
130 | */ | 131 | */ |
131 | static bool dnotify_should_send_event(struct fsnotify_group *group, | 132 | static bool dnotify_should_send_event(struct fsnotify_group *group, |
132 | struct inode *inode, struct vfsmount *mnt, | 133 | struct inode *inode, struct vfsmount *mnt, |
133 | __u32 mask, void *data, int data_type) | 134 | struct fsnotify_mark *mark, __u32 mask, |
135 | void *data, int data_type) | ||
134 | { | 136 | { |
135 | struct fsnotify_mark *fsn_mark; | 137 | struct fsnotify_mark *fsn_mark; |
136 | bool send; | 138 | bool send; |