aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/fsnotify_backend.h
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruen@suse.de>2009-12-17 21:24:24 -0500
committerEric Paris <eparis@redhat.com>2010-07-28 09:58:53 -0400
commit72acc854427948efed7a83da27f7dc3239ac9afc (patch)
tree69a8f479a644701a52abe07d7bf2751cdf4cc159 /include/linux/fsnotify_backend.h
parent098cf2fc77ee190c92bf9d08d69a13305f2487ec (diff)
fsnotify: kill FSNOTIFY_EVENT_FILE
Some fsnotify operations send a struct file. This is more information than we technically need. We instead send a struct path in all cases instead of sometimes a path and sometimes a file. 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.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/include/linux/fsnotify_backend.h b/include/linux/fsnotify_backend.h
index cf165857199b..7a6ba755acc3 100644
--- a/include/linux/fsnotify_backend.h
+++ b/include/linux/fsnotify_backend.h
@@ -214,7 +214,6 @@ struct fsnotify_event {
214#define FSNOTIFY_EVENT_NONE 0 214#define FSNOTIFY_EVENT_NONE 0
215#define FSNOTIFY_EVENT_PATH 1 215#define FSNOTIFY_EVENT_PATH 1
216#define FSNOTIFY_EVENT_INODE 2 216#define FSNOTIFY_EVENT_INODE 2
217#define FSNOTIFY_EVENT_FILE 3
218 int data_type; /* which of the above union we have */ 217 int data_type; /* which of the above union we have */
219 atomic_t refcnt; /* how many groups still are using/need to send this event */ 218 atomic_t refcnt; /* how many groups still are using/need to send this event */
220 __u32 mask; /* the type of access, bitwise OR for FS_* event types */ 219 __u32 mask; /* the type of access, bitwise OR for FS_* event types */
@@ -280,7 +279,7 @@ struct fsnotify_mark_entry {
280/* main fsnotify call to send events */ 279/* main fsnotify call to send events */
281extern void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, 280extern void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is,
282 const char *name, u32 cookie); 281 const char *name, u32 cookie);
283extern void __fsnotify_parent(struct file *file, struct dentry *dentry, __u32 mask); 282extern void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask);
284extern void __fsnotify_inode_delete(struct inode *inode); 283extern void __fsnotify_inode_delete(struct inode *inode);
285extern u32 fsnotify_get_cookie(void); 284extern u32 fsnotify_get_cookie(void);
286 285
@@ -393,7 +392,7 @@ static inline void fsnotify(struct inode *to_tell, __u32 mask, void *data, int d
393 const char *name, u32 cookie) 392 const char *name, u32 cookie)
394{} 393{}
395 394
396static inline void __fsnotify_parent(struct file *file, struct dentry *dentry, __u32 mask) 395static inline void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask)
397{} 396{}
398 397
399static inline void __fsnotify_inode_delete(struct inode *inode) 398static inline void __fsnotify_inode_delete(struct inode *inode)