diff options
author | Andreas Gruenbacher <agruen@suse.de> | 2009-12-17 21:24:24 -0500 |
---|---|---|
committer | Eric Paris <eparis@redhat.com> | 2010-07-28 09:58:53 -0400 |
commit | 72acc854427948efed7a83da27f7dc3239ac9afc (patch) | |
tree | 69a8f479a644701a52abe07d7bf2751cdf4cc159 /include/linux/fsnotify_backend.h | |
parent | 098cf2fc77ee190c92bf9d08d69a13305f2487ec (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.h | 5 |
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 */ |
281 | extern void fsnotify(struct inode *to_tell, __u32 mask, void *data, int data_is, | 280 | extern 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); |
283 | extern void __fsnotify_parent(struct file *file, struct dentry *dentry, __u32 mask); | 282 | extern void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask); |
284 | extern void __fsnotify_inode_delete(struct inode *inode); | 283 | extern void __fsnotify_inode_delete(struct inode *inode); |
285 | extern u32 fsnotify_get_cookie(void); | 284 | extern 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 | ||
396 | static inline void __fsnotify_parent(struct file *file, struct dentry *dentry, __u32 mask) | 395 | static inline void __fsnotify_parent(struct path *path, struct dentry *dentry, __u32 mask) |
397 | {} | 396 | {} |
398 | 397 | ||
399 | static inline void __fsnotify_inode_delete(struct inode *inode) | 398 | static inline void __fsnotify_inode_delete(struct inode *inode) |