Lines Matching refs:inode
29 static inline void fsnotify_name(struct inode *dir, __u32 mask, in fsnotify_name()
30 struct inode *child, in fsnotify_name()
39 static inline void fsnotify_dirent(struct inode *dir, struct dentry *dentry, in fsnotify_dirent()
45 static inline void fsnotify_inode(struct inode *inode, __u32 mask) in fsnotify_inode() argument
47 if (atomic_long_read(&inode->i_sb->s_fsnotify_connectors) == 0) in fsnotify_inode()
50 if (S_ISDIR(inode->i_mode)) in fsnotify_inode()
53 fsnotify(mask, inode, FSNOTIFY_EVENT_INODE, NULL, NULL, inode, 0); in fsnotify_inode()
60 struct inode *inode = d_inode(dentry); in fsnotify_parent() local
62 if (atomic_long_read(&inode->i_sb->s_fsnotify_connectors) == 0) in fsnotify_parent()
65 if (S_ISDIR(inode->i_mode)) { in fsnotify_parent()
80 return fsnotify(mask, data, data_type, NULL, NULL, inode, 0); in fsnotify_parent()
152 static inline void fsnotify_link_count(struct inode *inode) in fsnotify_link_count() argument
154 fsnotify_inode(inode, FS_ATTRIB); in fsnotify_link_count()
160 static inline void fsnotify_move(struct inode *old_dir, struct inode *new_dir, in fsnotify_move()
162 int isdir, struct inode *target, in fsnotify_move()
165 struct inode *source = moved->d_inode; in fsnotify_move()
191 static inline void fsnotify_inode_delete(struct inode *inode) in fsnotify_inode_delete() argument
193 __fsnotify_inode_delete(inode); in fsnotify_inode_delete()
207 static inline void fsnotify_inoderemove(struct inode *inode) in fsnotify_inoderemove() argument
209 fsnotify_inode(inode, FS_DELETE_SELF); in fsnotify_inoderemove()
210 __fsnotify_inode_delete(inode); in fsnotify_inoderemove()
216 static inline void fsnotify_create(struct inode *inode, struct dentry *dentry) in fsnotify_create() argument
218 audit_inode_child(inode, dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_create()
220 fsnotify_dirent(inode, dentry, FS_CREATE); in fsnotify_create()
228 static inline void fsnotify_link(struct inode *dir, struct inode *inode, in fsnotify_link() argument
231 fsnotify_link_count(inode); in fsnotify_link()
234 fsnotify_name(dir, FS_CREATE, inode, &new_dentry->d_name, 0); in fsnotify_link()
245 static inline void fsnotify_delete(struct inode *dir, struct inode *inode, in fsnotify_delete() argument
250 if (S_ISDIR(inode->i_mode)) in fsnotify_delete()
253 fsnotify_name(dir, mask, inode, &dentry->d_name, 0); in fsnotify_delete()
263 static inline void d_delete_notify(struct inode *dir, struct dentry *dentry) in d_delete_notify()
265 struct inode *inode = d_inode(dentry); in d_delete_notify() local
267 ihold(inode); in d_delete_notify()
269 fsnotify_delete(dir, inode, dentry); in d_delete_notify()
270 iput(inode); in d_delete_notify()
278 static inline void fsnotify_unlink(struct inode *dir, struct dentry *dentry) in fsnotify_unlink()
289 static inline void fsnotify_mkdir(struct inode *inode, struct dentry *dentry) in fsnotify_mkdir() argument
291 audit_inode_child(inode, dentry, AUDIT_TYPE_CHILD_CREATE); in fsnotify_mkdir()
293 fsnotify_dirent(inode, dentry, FS_CREATE | FS_ISDIR); in fsnotify_mkdir()
301 static inline void fsnotify_rmdir(struct inode *dir, struct dentry *dentry) in fsnotify_rmdir()