Lines Matching defs:dir
149 /* We only send parent/name to inode/sb/mount for events on non-dir */
194 * Do inode/sb/mount care about parent and name info on non-dir?
243 struct inode *dir, const struct qstr *name,
253 if (WARN_ON_ONCE(!inode && !dir))
264 return ops->handle_inode_event(inode_mark, mask, inode, dir, name, cookie);
269 struct inode *dir, const struct qstr *name,
281 * For FS_RENAME, 'dir' is old dir and 'data' is new dentry.
288 if (dir != moved->d_parent->d_inode)
294 data, data_type, dir, name, 0);
304 * Some events can be sent on both parent dir and child marks
305 * (e.g. FS_ATTRIB). If both parent dir and child are
306 * watching, report the event once to parent dir with name (if
312 dir = NULL;
317 dir, name, cookie);
321 struct inode *dir, const struct qstr *file_name,
352 pr_debug("%s: group=%p mask=%x marks_mask=%x marks_ignore_mask=%x data=%p data_type=%d dir=%p cookie=%d\n",
354 data, data_type, dir, cookie);
360 return group->ops->handle_event(group, mask, data, data_type, dir,
364 return fsnotify_handle_event(group, mask, data, data_type, dir,
472 * @dir: optional directory associated with event -
477 * If @dir and @inode are both non-NULL, event may be
481 int fsnotify(__u32 mask, const void *data, int data_type, struct inode *dir,
498 /* Dirent event - report on TYPE_INODE to dir */
499 inode = dir;
508 * Event on child - report on TYPE_PARENT to dir if it is
511 inode2 = dir;
570 ret = send_to_group(mask, data, data_type, dir, file_name,