• Home
  • Raw
  • Download

Lines Matching refs:dentry

61 static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry,  in fsnotify_dirent()  argument
64 fsnotify_name(mask, dentry, FSNOTIFY_EVENT_DENTRY, dir, &dentry->d_name, 0); in fsnotify_dirent()
79 static inline int fsnotify_parent(struct dentry *dentry, __u32 mask, in fsnotify_parent() argument
82 struct inode *inode = d_inode(dentry); in fsnotify_parent()
91 if (!(dentry->d_flags & DCACHE_FSNOTIFY_PARENT_WATCHED)) in fsnotify_parent()
96 if (IS_ROOT(dentry)) in fsnotify_parent()
99 return __fsnotify_parent(dentry, mask, data, data_type); in fsnotify_parent()
109 static inline void fsnotify_dentry(struct dentry *dentry, __u32 mask) in fsnotify_dentry() argument
111 fsnotify_parent(dentry, mask, dentry, FSNOTIFY_EVENT_DENTRY); in fsnotify_dentry()
130 !fsnotify_sb_has_priority_watchers(path->dentry->d_sb, in fsnotify_file()
138 if (path->dentry->d_op && in fsnotify_file()
139 path->dentry->d_op->d_canonical_path) { in fsnotify_file()
143 ret = path->dentry->d_op->d_canonical_path(path, in fsnotify_file()
149 ret = fsnotify_parent(lower_path.dentry, mask, in fsnotify_file()
159 return fsnotify_parent(path->dentry, mask, path, FSNOTIFY_EVENT_PATH); in fsnotify_file()
240 struct dentry *moved) in fsnotify_move()
302 static inline void fsnotify_create(struct inode *dir, struct dentry *dentry) in fsnotify_create() argument
304 audit_inode_child(dir, dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_create()
306 fsnotify_dirent(dir, dentry, FS_CREATE); in fsnotify_create()
317 struct dentry *new_dentry) in fsnotify_link()
335 struct dentry *dentry) in fsnotify_delete() argument
342 fsnotify_name(mask, inode, FSNOTIFY_EVENT_INODE, dir, &dentry->d_name, in fsnotify_delete()
353 static inline void d_delete_notify(struct inode *dir, struct dentry *dentry) in d_delete_notify() argument
355 struct inode *inode = d_inode(dentry); in d_delete_notify()
358 d_delete(dentry); in d_delete_notify()
359 fsnotify_delete(dir, inode, dentry); in d_delete_notify()
368 static inline void fsnotify_unlink(struct inode *dir, struct dentry *dentry) in fsnotify_unlink() argument
370 if (WARN_ON_ONCE(d_is_negative(dentry))) in fsnotify_unlink()
373 fsnotify_delete(dir, d_inode(dentry), dentry); in fsnotify_unlink()
383 static inline void fsnotify_mkdir(struct inode *dir, struct dentry *dentry) in fsnotify_mkdir() argument
385 audit_inode_child(dir, dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_mkdir()
387 fsnotify_dirent(dir, dentry, FS_CREATE | FS_ISDIR); in fsnotify_mkdir()
395 static inline void fsnotify_rmdir(struct inode *dir, struct dentry *dentry) in fsnotify_rmdir() argument
397 if (WARN_ON_ONCE(d_is_negative(dentry))) in fsnotify_rmdir()
400 fsnotify_delete(dir, d_inode(dentry), dentry); in fsnotify_rmdir()
447 static inline void fsnotify_xattr(struct dentry *dentry) in fsnotify_xattr() argument
449 fsnotify_dentry(dentry, FS_ATTRIB); in fsnotify_xattr()
456 static inline void fsnotify_change(struct dentry *dentry, unsigned int ia_valid) in fsnotify_change() argument
479 fsnotify_dentry(dentry, mask); in fsnotify_change()