Home
last modified time | relevance | path

Searched refs:mnt_root (Results 1 – 25 of 27) sorted by relevance

12

/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c372 const char *mnt_root, *last_dir, *last_root; in test_statmount_sb_basic()
388 mnt_root = sm->str + sm->mnt_root; in test_statmount_mnt_point()
389 last_root = strrchr(mnt_root, '/'); in test_statmount_mnt_point()
393 last_root = mnt_root; in test_statmount_mnt_point()
701 if (strcmp(root, sm->str + sm->mnt_root) != 0) { in main()
702 ksft_test_result_fail("statmount returned incorrect mnt_root," in main()
703 "statmount mnt_root: %s != %s\n",
704 sm->str + sm->mnt_root, root);
742 if (strcmp(root, sm->str + sm->mnt_root) !
402 const char *mnt_root, *last_dir, *last_root; test_statmount_mnt_root() local
[all...]
/linux/fs/
H A Dnamespace.c994 mnt->mnt_mountpoint = mnt->mnt.mnt_root; in __umount_mnt()
1027 if (unlikely(mnt->mnt_mountpoint == parent->mnt.mnt_root)) in make_visible()
1154 m->mnt.mnt_root = dget(root); in setup_mnt()
1155 m->mnt_mountpoint = m->mnt.mnt_root; in setup_mnt()
1311 dput(mnt->mnt.mnt_root); in cleanup_mnt()
2193 is_mnt_ns_file(src_mnt->mnt.mnt_root)) { in copy_tree()
2204 dst_mnt = clone_mnt(src_mnt, src_mnt->mnt.mnt_root, flag); in copy_tree()
2270 res[n].dentry = m->mnt.mnt_root; in collect_paths()
2354 if (mnt_ns_loop(p->mnt.mnt_root)) in check_for_nsfs_mounts()
2580 if (!shorter && is_mnt_ns_file(top->mnt.mnt_root)) in attach_recursive_mnt()
[all …]
H A Dpnode.c41 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root()
266 if (!is_subdir(dest_mp->m_dentry, m->mnt.mnt_root)) in need_secondary()
340 this = copy_tree(copy, copy->mnt.mnt_root, type); in propagate_mnt()
402 if (to->mnt.mnt_root != mp->m_dentry) in propagation_would_overmount()
H A Dfsopen.c191 if (target.mnt->mnt_root != target.dentry) in SYSCALL_DEFINE3()
H A Dnamei.c815 if (mnt->mnt_root == sb->s_root) in path_connected()
818 return is_subdir(dentry, mnt->mnt_root); in path_connected()
1493 if (mountpoint != m->mnt.mnt_root) { in choose_mountpoint_rcu()
1597 path->dentry = dget(mounted->mnt_root); in __traverse_mounts()
1654 path->dentry = dget(mounted->mnt_root); in follow_down_one()
1706 dentry = path->dentry = mounted->mnt.mnt_root; in __follow_mount_rcu()
2157 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in follow_dotdot_rcu()
2197 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in follow_dotdot()
H A Dnsfs.c689 nsfs_root_path.dentry = nsfs_mnt->mnt_root; in nsfs_init()
H A Dpidfs.c1181 pidfs_root_path.dentry = pidfs_mnt->mnt_root; in pidfs_init()
/linux/security/landlock/
H A Dfs.c880 if (walker_path.dentry == walker_path.mnt->mnt_root) { in is_access_to_paths_allowed()
910 walker_path.dentry = walker_path.mnt->mnt_root; in is_access_to_paths_allowed()
1009 * @mnt_root: Last directory to check.
1014 * @mnt_root directory used as a mount point. This mount point is the common
1016 * file. While walking from @dir to @mnt_root, we record all the domain's
1027 * the walk reached @mnt_root.
1030 const struct dentry *const mnt_root, in collect_domain_accesses() argument
1036 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom)) in collect_domain_accesses()
1064 if (dir == mnt_root || unlikely(IS_ROOT(dir))) in collect_domain_accesses()
1187 mnt_dir.dentry = new_dir->mnt->mnt_root; in current_check_refer_path()
[all...]
/linux/tools/include/uapi/linux/
H A Dmount.h175 __u32 mnt_root; /* [str] Root of mount relative to root of fs */
221 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */
173 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ global() member
/linux/include/linux/
H A Dmount.h59 struct dentry *mnt_root; /* root of the mounted tree */ member
/linux/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h175 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member
/linux/fs/configfs/
H A Dmount.c127 return err ? ERR_PTR(err) : configfs_mount->mnt_root; in configfs_pin_fs()
/linux/fs/devpts/
H A Dinode.c126 (path->mnt->mnt_root != sb->s_root)) in devpts_ptmx_path()
161 while (path.mnt->mnt_root == path.dentry) in devpts_mntget()
/linux/samples/vfs/
H A Dmountinfo.c149 &buf->str[buf->mnt_root], in dump_mountinfo()
/linux/security/
H A Dinode.c129 parent = mount->mnt_root; in securityfs_create_dentry()
/linux/fs/autofs/
H A Ddev-ioctl.c200 while (path.dentry == path.mnt->mnt_root) { in find_autofs_mount()
602 if (path.mnt->mnt_root == path.dentry) { in autofs_dev_ioctl_ismountpoint()
/linux/fs/debugfs/
H A Dinode.c353 parent = debugfs_mount->mnt_root; in debugfs_lookup()
392 parent = debugfs_mount->mnt_root; in debugfs_start_creating()
/linux/ipc/
H A Dmqueue.c896 dentry = start_creating_noperm(mnt->mnt_root, &QSTR(name->name)); in mqueue_file_open()
952 audit_inode_parent_hidden(name, mnt->mnt_root); in SYSCALL_DEFINE1()
956 dentry = start_removing_noperm(mnt->mnt_root, &QSTR(name->name)); in SYSCALL_DEFINE1()
964 err = vfs_unlink(&nop_mnt_idmap, d_inode(mnt->mnt_root), in SYSCALL_DEFINE1()
/linux/fs/cachefiles/
H A Dcache.c195 .dentry = cache->mnt->mnt_root, in cachefiles_has_space()
/linux/security/tomoyo/
H A Dtomoyo.c428 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in tomoyo_sb_umount()
/linux/fs/overlayfs/
H A Dsuper.c548 if (ovl_inuse_trylock(ovl_upper_mnt(ofs)->mnt_root)) { in ovl_get_upper()
1275 err = ovl_check_layer(sb, ofs, ovl_upper_mnt(ofs)->mnt_root, in ovl_check_overlapping_layers()
1295 ofs->layers[i].mnt->mnt_root, in ovl_check_overlapping_layers()
H A Dparams.c853 ovl_inuse_unlock(ovl_upper_mnt(ofs)->mnt_root); in ovl_free_fs()
/linux/fs/tracefs/
H A Dinode.c544 parent = tracefs_mount->mnt_root; in tracefs_start_creating()
/linux/security/apparmor/
H A Dmount.c641 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in aa_umount()
H A Dapparmorfs.c2745 error = __aafs_ns_mkdir(root_ns, aafs_mnt->mnt_root, ".policy", in aa_create_aafs()
2746 aafs_mnt->mnt_root); in aa_create_aafs()

12