diff options
author | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:39 -0400 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 10:18:54 -0400 |
commit | ce8f76fb7320297ccbe7c950fd9a2d727dd6a5a0 (patch) | |
tree | fb870e9564bfef438e46ba3c39be2999e246b179 /include | |
parent | 613a807fe7c793ceb7d6f059773527a5a6c84a96 (diff) |
fsnotify: pass both the vfsmount mark and inode mark
should_send_event() and handle_event() will both need to look up the inode
event if they get a vfsmount event. Lets just pass both at the same time
since we have them both after walking the lists in lockstep.
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fsnotify_backend.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 2e7cc8c2a151..d38f922977f9 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
@@ -92,9 +92,12 @@ struct fsnotify_event_private_data; | |||
92 | */ | 92 | */ |
93 | struct fsnotify_ops { | 93 | struct fsnotify_ops { |
94 | bool (*should_send_event)(struct fsnotify_group *group, struct inode *inode, | 94 | bool (*should_send_event)(struct fsnotify_group *group, struct inode *inode, |
95 | struct vfsmount *mnt, struct fsnotify_mark *mark, | 95 | struct vfsmount *mnt, struct fsnotify_mark *inode_mark, |
96 | struct fsnotify_mark *vfsmount_mark, | ||
96 | __u32 mask, void *data, int data_type); | 97 | __u32 mask, void *data, int data_type); |
97 | int (*handle_event)(struct fsnotify_group *group, struct fsnotify_mark *mark, | 98 | int (*handle_event)(struct fsnotify_group *group, |
99 | struct fsnotify_mark *inode_mark, | ||
100 | struct fsnotify_mark *vfsmount_mark, | ||
98 | struct fsnotify_event *event); | 101 | struct fsnotify_event *event); |
99 | void (*free_group_priv)(struct fsnotify_group *group); | 102 | void (*free_group_priv)(struct fsnotify_group *group); |
100 | void (*freeing_mark)(struct fsnotify_mark *mark, struct fsnotify_group *group); | 103 | void (*freeing_mark)(struct fsnotify_mark *mark, struct fsnotify_group *group); |