| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 411 const char *mnt_root, *last_dir, *last_root; in test_statmount_mnt_root() 427 mnt_root = sm->str + sm->mnt_root; in test_statmount_mnt_root() 428 last_root = strrchr(mnt_root, '/'); in test_statmount_mnt_root() 432 last_root = mnt_root; in test_statmount_mnt_root() 740 if (strcmp(root, sm->str + sm->mnt_root) != 0) { 741 ksft_test_result_fail("statmount returned incorrect mnt_root," 742 "statmount mnt_root: %s != %s\n", 743 sm->str + sm->mnt_root, root); 781 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 D | namespace.c | 994 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 D | pnode.c | 41 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 D | d_path.c | 110 if (dentry == mnt->mnt.mnt_root) { in __prepend_path() 282 (!IS_ROOT(path->dentry) || path->dentry != path->mnt->mnt_root)) in d_path()
|
| H A D | fsopen.c | 191 if (target.mnt->mnt_root != target.dentry) in SYSCALL_DEFINE3()
|
| H A D | namei.c | 815 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() 2158 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in follow_dotdot_rcu() 2198 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in follow_dotdot()
|
| /linux/security/landlock/ |
| H A D | fs.c | 879 if (walker_path.dentry == walker_path.mnt->mnt_root) { in is_access_to_paths_allowed() 909 walker_path.dentry = walker_path.mnt->mnt_root; in is_access_to_paths_allowed() 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() 1188 mnt_dir.dentry = new_dir->mnt->mnt_root; in current_check_refer_path() 1465 log_fs_change_topology_dentry(subject, handle_layer, mnt->mnt_root); in hook_sb_umount()
|
| /linux/tools/include/uapi/linux/ |
| H A D | mount.h | 173 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member 216 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */
|
| /linux/include/linux/ |
| H A D | mount.h | 59 struct dentry *mnt_root; /* root of the mounted tree */ member
|
| /linux/include/uapi/linux/ |
| H A D | mount.h | 174 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ 220 #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/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | mount.h | 173 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member
|
| /linux/fs/configfs/ |
| H A D | mount.c | 127 return err ? ERR_PTR(err) : configfs_mount->mnt_root; in configfs_pin_fs()
|
| /linux/fs/devpts/ |
| H A D | inode.c | 126 (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 D | mountinfo.c | 149 &buf->str[buf->mnt_root], in dump_mountinfo()
|
| /linux/security/ |
| H A D | inode.c | 129 parent = mount->mnt_root; in securityfs_create_dentry()
|
| /linux/fs/autofs/ |
| H A D | dev-ioctl.c | 200 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 D | inode.c | 353 parent = debugfs_mount->mnt_root; in debugfs_lookup() 392 parent = debugfs_mount->mnt_root; in debugfs_start_creating()
|
| /linux/ipc/ |
| H A D | mqueue.c | 896 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/overlayfs/ |
| H A D | super.c | 553 if (ovl_inuse_trylock(ovl_upper_mnt(ofs)->mnt_root)) { in ovl_get_upper() 1279 err = ovl_check_layer(sb, ofs, ovl_upper_mnt(ofs)->mnt_root, in ovl_check_overlapping_layers() 1299 ofs->layers[i].mnt->mnt_root, in ovl_check_overlapping_layers()
|
| H A D | namei.c | 87 return is_subdir(dentry, ((struct vfsmount *)ctx)->mnt_root); in ovl_acceptable() 403 err = vfs_path_lookup(layer->mnt->mnt_root, layer->mnt, redirect, in ovl_lookup_data_layer()
|
| /linux/fs/cachefiles/ |
| H A D | cache.c | 195 .dentry = cache->mnt->mnt_root, in cachefiles_has_space()
|
| /linux/security/tomoyo/ |
| H A D | tomoyo.c | 428 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in tomoyo_sb_umount()
|
| /linux/kernel/ |
| H A D | acct.c | 238 internal.dentry = dget(mnt->mnt_root); in acct_on()
|
| /linux/fs/tracefs/ |
| H A D | inode.c | 563 parent = tracefs_mount->mnt_root; in tracefs_start_creating()
|
| /linux/security/apparmor/ |
| H A D | mount.c | 641 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in aa_umount()
|