Searched refs:mnt_root (Results 1 - 25 of 34) sorted by relevance

12

/linux-master/fs/
H A Dpnode.c45 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root))
101 if (m->mnt.mnt_root == mnt->mnt.mnt_root) {
232 if (!is_subdir(dest_mp->m_dentry, m->mnt.mnt_root))
260 child = copy_tree(last_source, last_source->mnt.mnt_root, type);
343 if (child->mnt_mountpoint != mnt->mnt.mnt_root)
386 if (to->mnt.mnt_root != mp->m_dentry)
496 if (child->mnt_mountpoint == mnt->mnt.mnt_root)
526 if (child->mnt_mountpoint == mnt->mnt.mnt_root)
H A Dproc_namespace.c105 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
140 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
145 err = show_path(m, mnt->mnt_root);
176 err = sb->s_op->show_devname(m, mnt->mnt_root);
187 err = sb->s_op->show_options(m, mnt->mnt_root);
197 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
H A Dnamespace.c892 mnt->mnt_mountpoint = mnt->mnt.mnt_root;
1112 mnt->mnt.mnt_root = dget(fc->root);
1113 mnt->mnt_mountpoint = mnt->mnt.mnt_root;
1208 mnt->mnt.mnt_root = dget(root);
1209 mnt->mnt_mountpoint = mnt->mnt.mnt_root;
1266 dput(mnt->mnt.mnt_root);
1859 return path->mnt->mnt_root == path->dentry;
2005 is_mnt_ns_file(s->mnt.mnt_root)) {
2015 q = clone_mnt(p, p->mnt.mnt_root, flag);
2319 smp = get_mountpoint(source_mnt->mnt.mnt_root);
[all...]
H A Dd_path.c110 if (dentry == mnt->mnt.mnt_root) {
278 * path->dentry == path->mnt->mnt_root. In that case don't call d_dname
282 (!IS_ROOT(path->dentry) || path->dentry != path->mnt->mnt_root))
H A Dfsopen.c186 if (target.mnt->mnt_root != target.dentry)
H A Dnamei.c645 * path_connected - Verify that a dentry is below mnt.mnt_root
657 if (mnt->mnt_root == sb->s_root)
660 return is_subdir(dentry, mnt->mnt_root);
1305 if (mountpoint != m->mnt.mnt_root) {
1401 path->dentry = dget(mounted->mnt_root);
1454 path->dentry = dget(mounted->mnt_root);
1509 dentry = path->dentry = mounted->mnt.mnt_root;
1883 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) {
1923 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) {
/linux-master/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c411 const char *mnt_root, *last_dir, *last_root; local
423 mnt_root = sm->str + sm->mnt_root;
424 last_root = strrchr(mnt_root, '/');
428 last_root = mnt_root;
598 test_statmount_string(STATMOUNT_MNT_ROOT, str_off(mnt_root), "mount root");
601 test_statmount_string(all_mask, str_off(mnt_root), "mount root & all");
/linux-master/kernel/
H A Dusermode_driver.c72 info->wd.dentry = mnt->mnt_root;
86 info->wd.mnt->mnt_root != info->wd.dentry))
H A Daudit_tree.c673 return inode_to_key(d_backing_inode(mnt->mnt_root)) ==
747 return tag_chunk(d_backing_inode(mnt->mnt_root), arg);
/linux-master/include/linux/
H A Dmount.h70 struct dentry *mnt_root; /* root of the mounted tree */ member in struct:vfsmount
/linux-master/include/uapi/linux/
H A Dmount.h173 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member in struct:statmount
202 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */
/linux-master/tools/include/uapi/linux/
H A Dmount.h173 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member in struct:statmount
202 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */
/linux-master/fs/configfs/
H A Dmount.c126 return err ? ERR_PTR(err) : configfs_mount->mnt_root;
/linux-master/security/landlock/
H A Dfs.c736 if (walker_path.dentry == walker_path.mnt->mnt_root) {
828 * @mnt_root: Last directory to check.
833 * @mnt_root directory used as a mount point. This mount point is the common
835 * file. While walking from @dir to @mnt_root, we record all the domain's
844 * - false if the walk reached @mnt_root.
848 const struct dentry *const mnt_root, struct dentry *dir,
854 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom))
879 /* We should not reach a root other than @mnt_root. */
880 if (dir == mnt_root || WARN_ON_ONCE(IS_ROOT(dir)))
998 mnt_dir.dentry = new_dir->mnt->mnt_root;
846 collect_domain_accesses( const struct landlock_ruleset *const domain, const struct dentry *const mnt_root, struct dentry *dir, layer_mask_t (*const layer_masks_dom)[LANDLOCK_NUM_ACCESS_FS]) argument
[all...]
/linux-master/fs/overlayfs/
H A Dexport.c489 if (real == layer->mnt->mnt_root)
505 if (parent == layer->mnt->mnt_root) {
571 if (parent == layer->mnt->mnt_root) {
H A Dsuper.c527 if (ovl_inuse_trylock(ovl_upper_mnt(ofs)->mnt_root)) {
1210 err = ovl_check_layer(sb, ofs, ovl_upper_mnt(ofs)->mnt_root,
1230 ofs->layers[i].mnt->mnt_root,
/linux-master/fs/devpts/
H A Dinode.c125 (path->mnt->mnt_root != sb->s_root))
160 while (path.mnt->mnt_root == path.dentry)
/linux-master/security/
H A Dinode.c126 parent = mount->mnt_root;
/linux-master/fs/autofs/
H A Ddev-ioctl.c195 while (path.dentry == path.mnt->mnt_root) {
533 if (path.mnt->mnt_root == path.dentry) {
/linux-master/fs/debugfs/
H A Dinode.c338 parent = debugfs_mount->mnt_root;
376 parent = debugfs_mount->mnt_root;
/linux-master/security/tomoyo/
H A Dtomoyo.c428 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root };
/linux-master/fs/cachefiles/
H A Dcache.c194 .dentry = cache->mnt->mnt_root,
/linux-master/ipc/
H A Dmqueue.c898 struct dentry *root = mnt->mnt_root;
966 audit_inode_parent_hidden(name, mnt->mnt_root);
970 inode_lock_nested(d_inode(mnt->mnt_root), I_MUTEX_PARENT);
971 dentry = lookup_one_len(name->name, mnt->mnt_root,
989 inode_unlock(d_inode(mnt->mnt_root));
/linux-master/security/apparmor/
H A Dmount.c642 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root };
/linux-master/fs/tracefs/
H A Dinode.c473 parent = tracefs_mount->mnt_root;

Completed in 243 milliseconds

12