diff options
Diffstat (limited to 'include/linux/fsnotify.h')
-rw-r--r-- | include/linux/fsnotify.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/linux/fsnotify.h b/include/linux/fsnotify.h index 03b8e7932b83..b5ff64d2f092 100644 --- a/include/linux/fsnotify.h +++ b/include/linux/fsnotify.h | |||
@@ -70,19 +70,20 @@ static inline void fsnotify_inoderemove(struct inode *inode) | |||
70 | /* | 70 | /* |
71 | * fsnotify_create - 'name' was linked in | 71 | * fsnotify_create - 'name' was linked in |
72 | */ | 72 | */ |
73 | static inline void fsnotify_create(struct inode *inode, const char *name) | 73 | static inline void fsnotify_create(struct inode *inode, struct dentry *dentry) |
74 | { | 74 | { |
75 | inode_dir_notify(inode, DN_CREATE); | 75 | inode_dir_notify(inode, DN_CREATE); |
76 | inotify_inode_queue_event(inode, IN_CREATE, 0, name); | 76 | inotify_inode_queue_event(inode, IN_CREATE, 0, dentry->d_name.name); |
77 | } | 77 | } |
78 | 78 | ||
79 | /* | 79 | /* |
80 | * fsnotify_mkdir - directory 'name' was created | 80 | * fsnotify_mkdir - directory 'name' was created |
81 | */ | 81 | */ |
82 | static inline void fsnotify_mkdir(struct inode *inode, const char *name) | 82 | static inline void fsnotify_mkdir(struct inode *inode, struct dentry *dentry) |
83 | { | 83 | { |
84 | inode_dir_notify(inode, DN_CREATE); | 84 | inode_dir_notify(inode, DN_CREATE); |
85 | inotify_inode_queue_event(inode, IN_CREATE | IN_ISDIR, 0, name); | 85 | inotify_inode_queue_event(inode, IN_CREATE | IN_ISDIR, 0, |
86 | dentry->d_name.name); | ||
86 | } | 87 | } |
87 | 88 | ||
88 | /* | 89 | /* |