Lines Matching refs:path
56 static int d_namespace_path(struct path *path, char *buf, int buflen, in d_namespace_path() argument
63 if (path->mnt->mnt_flags & MNT_INTERNAL) { in d_namespace_path()
65 res = dentry_path(path->dentry, buf, buflen); in d_namespace_path()
71 if (path->dentry->d_sb->s_magic == PROC_SUPER_MAGIC && in d_namespace_path()
83 struct path root; in d_namespace_path()
85 res = __d_path(path, &root, buf, buflen); in d_namespace_path()
88 res = d_absolute_path(path, buf, buflen); in d_namespace_path()
89 if (!our_mnt(path->mnt)) in d_namespace_path()
100 res = dentry_path_raw(path->dentry, buf, buflen); in d_namespace_path()
106 } else if (!our_mnt(path->mnt)) in d_namespace_path()
117 if (d_unlinked(path->dentry) && path->dentry->d_inode && in d_namespace_path()
137 our_mnt(path->mnt))) { in d_namespace_path()
161 static int get_name_to_buffer(struct path *path, int flags, char *buffer, in get_name_to_buffer() argument
165 int error = d_namespace_path(path, buffer, size - adjust, name, flags); in get_name_to_buffer()
207 int aa_path_name(struct path *path, int flags, char **buffer, const char **name, in aa_path_name() argument
222 error = get_name_to_buffer(path, flags, buf, size, &str, info); in aa_path_name()