Lines Matching refs:inode
52 struct inode *dir, const struct qstr *name, in fsnotify_name()
61 static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry, in fsnotify_dirent()
67 static inline void fsnotify_inode(struct inode *inode, __u32 mask) in fsnotify_inode() argument
69 if (!fsnotify_sb_has_watchers(inode->i_sb)) in fsnotify_inode()
72 if (S_ISDIR(inode->i_mode)) in fsnotify_inode()
75 fsnotify(mask, inode, FSNOTIFY_EVENT_INODE, NULL, NULL, inode, 0); in fsnotify_inode()
82 struct inode *inode = d_inode(dentry); in fsnotify_parent() local
84 if (!fsnotify_sb_has_watchers(inode->i_sb)) in fsnotify_parent()
87 if (S_ISDIR(inode->i_mode)) { in fsnotify_parent()
102 return fsnotify(mask, data, data_type, NULL, NULL, inode, 0); in fsnotify_parent()
229 static inline void fsnotify_link_count(struct inode *inode) in fsnotify_link_count() argument
231 fsnotify_inode(inode, FS_ATTRIB); in fsnotify_link_count()
237 static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, in fsnotify_move()
239 int isdir, struct inode *target, in fsnotify_move()
242 struct inode *source = moved->d_inode; in fsnotify_move()
273 static inline void fsnotify_inode_delete(struct inode *inode) in fsnotify_inode_delete() argument
275 __fsnotify_inode_delete(inode); in fsnotify_inode_delete()
289 static inline void fsnotify_inoderemove(struct inode *inode) in fsnotify_inoderemove() argument
291 fsnotify_inode(inode, FS_DELETE_SELF); in fsnotify_inoderemove()
292 __fsnotify_inode_delete(inode); in fsnotify_inoderemove()
302 static inline void fsnotify_create(struct inode *dir, struct dentry *dentry) in fsnotify_create()
316 static inline void fsnotify_link(struct inode *dir, struct inode *inode, in fsnotify_link() argument
319 fsnotify_link_count(inode); in fsnotify_link()
322 fsnotify_name(FS_CREATE, inode, FSNOTIFY_EVENT_INODE, in fsnotify_link()
334 static inline void fsnotify_delete(struct inode *dir, struct inode *inode, in fsnotify_delete() argument
339 if (S_ISDIR(inode->i_mode)) in fsnotify_delete()
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()
355 struct inode *inode = d_inode(dentry); in d_delete_notify() local
357 ihold(inode); in d_delete_notify()
359 fsnotify_delete(dir, inode, dentry); in d_delete_notify()
360 iput(inode); in d_delete_notify()
368 static inline void fsnotify_unlink(struct inode *dir, struct dentry *dentry) in fsnotify_unlink()
383 static inline void fsnotify_mkdir(struct inode *dir, struct dentry *dentry) in fsnotify_mkdir()
395 static inline void fsnotify_rmdir(struct inode *dir, struct dentry *dentry) in fsnotify_rmdir()
482 static inline int fsnotify_sb_error(struct super_block *sb, struct inode *inode, in fsnotify_sb_error() argument
487 .inode = inode, in fsnotify_sb_error()