Lines Matching refs:path
21 static bool fanotify_path_equal(const struct path *p1, const struct path *p2)
26 static unsigned int fanotify_hash_path(const struct path *path)
28 return hash_ptr(path->dentry, FANOTIFY_EVENT_HASH_BITS) ^
29 hash_ptr(path->mnt, FANOTIFY_EVENT_HASH_BITS);
302 const struct path *path = fsnotify_data_path(data, data_type);
312 /* Do we have path to open a file descriptor? */
313 if (!path)
316 if (!d_is_reg(path->dentry) && !d_can_lookup(path->dentry))
538 static struct fanotify_event *fanotify_alloc_path_event(const struct path *path,
549 pevent->path = *path;
550 *hash ^= fanotify_hash_path(path);
551 path_get(path);
556 static struct fanotify_event *fanotify_alloc_perm_event(const struct path *path,
571 pevent->path = *path;
572 path_get(path);
722 const struct path *path = fsnotify_data_path(data, data_type);
809 event = fanotify_alloc_perm_event(path, gfp);
819 event = fanotify_alloc_path_event(path, &hash, gfp);