diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2009-12-17 21:24:27 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:57 -0400 |
commit | ca9c726eea013394d1e846331b117effb21ead83 (patch) | |
tree | de2319fb43b4fa16d07ecbcd75022cdaf9a757e1 /include/linux/fsnotify_backend.h | |
parent | 0d48b7f01f442bc88a69aa98f3b6b015f2817608 (diff) |
fsnotify: Infrastructure for per-mount watches
Per-mount watches allow groups to listen to fsnotify events on an entire
mount. This patch simply adds and initializes the fields needed in the
vfsmount struct to make this happen.
Signed-off-by: Andreas Gruenbacher <agruen@suse.de>
Signed-off-by: Eric Paris <eparis@redhat.com>
Diffstat (limited to 'include/linux/fsnotify_backend.h')
-rw-r--r-- | include/linux/fsnotify_backend.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index f21ff1bd4b5a..1af42cbfc429 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
@@ -282,6 +282,7 @@ extern void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, | |||
282 | const char *name, u32 cookie); | 282 | const char *name, u32 cookie); |
283 | extern void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask); | 283 | extern void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask); |
284 | extern void __fsnotify_inode_delete(struct inode *inode); | 284 | extern void __fsnotify_inode_delete(struct inode *inode); |
285 | extern void __fsnotify_vfsmount_delete(struct vfsmount *mnt); | ||
285 | extern u32 fsnotify_get_cookie(void); | 286 | extern u32 fsnotify_get_cookie(void); |
286 | 287 | ||
287 | static inline int fsnotify_inode_watches_children(struct inode *inode) | 288 | static inline int fsnotify_inode_watches_children(struct inode *inode) |
@@ -402,6 +403,9 @@ static inline void __fsnotify_parent(struct path *path, struct dentry *dentry, _ | |||
402 | static inline void __fsnotify_inode_delete(struct inode *inode) | 403 | static inline void __fsnotify_inode_delete(struct inode *inode) |
403 | {} | 404 | {} |
404 | 405 | ||
406 | static inline void __fsnotify_vfsmount_delete(struct vfsmount *mnt) | ||
407 | {} | ||
408 | |||
405 | static inline void __fsnotify_update_dcache_flags(struct dentry *dentry) | 409 | static inline void __fsnotify_update_dcache_flags(struct dentry *dentry) |
406 | {} | 410 | {} |
407 | 411 | ||