diff options
author | Eric Paris <eparis@redhat.com> | 2009-12-17 21:24:21 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:48 -0400 |
commit | 28c60e37f874dcbb93c4afc839ba5e4911c4f4bc (patch) | |
tree | 6f0ba450d42e9e9d6cc5be2e42dc846f00c44447 /include/linux/fsnotify_backend.h | |
parent | 2a12a9d7814631e918dec93abad856e692d5286d (diff) |
fsnotify: send struct file when sending events to parents when possible
fanotify needs a path in order to open an fd to the object which changed.
Currently notifications to inode's parents are done using only the inode.
For some parental notification we have the entire file, send that so
fanotify can use it.
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, 2 insertions, 2 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h index 2766df67f1ec..0e0c2b76b067 100644 --- a/include/linux/fsnotify_backend.h +++ b/include/linux/fsnotify_backend.h | |||
@@ -259,7 +259,7 @@ struct fsnotify_mark_entry { | |||
259 | /* main fsnotify call to send events */ | 259 | /* main fsnotify call to send events */ |
260 | extern void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, | 260 | extern void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, |
261 | const char *name, u32 cookie); | 261 | const char *name, u32 cookie); |
262 | extern void __fsnotify_parent(struct dentry *dentry, __u32 mask); | 262 | extern void __fsnotify_parent(struct file *file, struct dentry *dentry, __u32 mask); |
263 | extern void __fsnotify_inode_delete(struct inode *inode); | 263 | extern void __fsnotify_inode_delete(struct inode *inode); |
264 | extern u32 fsnotify_get_cookie(void); | 264 | extern u32 fsnotify_get_cookie(void); |
265 | 265 | ||
@@ -367,7 +367,7 @@ static inline void fsnotify(struct inode *to_tell, __u32 mask, void *data, int d | |||
367 | const char *name, u32 cookie) | 367 | const char *name, u32 cookie) |
368 | {} | 368 | {} |
369 | 369 | ||
370 | static inline void __fsnotify_parent(struct dentry *dentry, __u32 mask) | 370 | static inline void __fsnotify_parent(struct file *file, struct dentry *dentry, __u32 mask) |
371 | {} | 371 | {} |
372 | 372 | ||
373 | static inline void __fsnotify_inode_delete(struct inode *inode) | 373 | static inline void __fsnotify_inode_delete(struct inode *inode) |