Lines Matching refs:dentry
39 static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry, in fsnotify_dirent() argument
42 fsnotify_name(mask, dentry, FSNOTIFY_EVENT_DENTRY, dir, &dentry->d_name, 0); in fsnotify_dirent()
57 static inline int fsnotify_parent(struct dentry *dentry, __u32 mask, in fsnotify_parent() argument
60 struct inode *inode = d_inode(dentry); in fsnotify_parent()
69 if (!(dentry->d_flags & DCACHE_FSNOTIFY_PARENT_WATCHED)) in fsnotify_parent()
74 if (IS_ROOT(dentry)) in fsnotify_parent()
77 return __fsnotify_parent(dentry, mask, data, data_type); in fsnotify_parent()
87 static inline void fsnotify_dentry(struct dentry *dentry, __u32 mask) in fsnotify_dentry() argument
89 fsnotify_parent(dentry, mask, dentry, FSNOTIFY_EVENT_DENTRY); in fsnotify_dentry()
101 return fsnotify_parent(path->dentry, mask, path, FSNOTIFY_EVENT_PATH); in fsnotify_file()
143 struct dentry *moved) in fsnotify_move()
205 static inline void fsnotify_create(struct inode *dir, struct dentry *dentry) in fsnotify_create() argument
207 audit_inode_child(dir, dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_create()
209 fsnotify_dirent(dir, dentry, FS_CREATE); in fsnotify_create()
220 struct dentry *new_dentry) in fsnotify_link()
238 struct dentry *dentry) in fsnotify_delete() argument
245 fsnotify_name(mask, inode, FSNOTIFY_EVENT_INODE, dir, &dentry->d_name, in fsnotify_delete()
256 static inline void d_delete_notify(struct inode *dir, struct dentry *dentry) in d_delete_notify() argument
258 struct inode *inode = d_inode(dentry); in d_delete_notify()
261 d_delete(dentry); in d_delete_notify()
262 fsnotify_delete(dir, inode, dentry); in d_delete_notify()
271 static inline void fsnotify_unlink(struct inode *dir, struct dentry *dentry) in fsnotify_unlink() argument
273 if (WARN_ON_ONCE(d_is_negative(dentry))) in fsnotify_unlink()
276 fsnotify_delete(dir, d_inode(dentry), dentry); in fsnotify_unlink()
286 static inline void fsnotify_mkdir(struct inode *dir, struct dentry *dentry) in fsnotify_mkdir() argument
288 audit_inode_child(dir, dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_mkdir()
290 fsnotify_dirent(dir, dentry, FS_CREATE | FS_ISDIR); in fsnotify_mkdir()
298 static inline void fsnotify_rmdir(struct inode *dir, struct dentry *dentry) in fsnotify_rmdir() argument
300 if (WARN_ON_ONCE(d_is_negative(dentry))) in fsnotify_rmdir()
303 fsnotify_delete(dir, d_inode(dentry), dentry); in fsnotify_rmdir()
349 static inline void fsnotify_xattr(struct dentry *dentry) in fsnotify_xattr() argument
351 fsnotify_dentry(dentry, FS_ATTRIB); in fsnotify_xattr()
358 static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid) in fsnotify_change() argument
381 fsnotify_dentry(dentry, mask); in fsnotify_change()