| /linux/tools/testing/selftests/filesystems/statmount/ |
| H A D | statmount_test.c | 375 const char *mnt_root, *last_dir, *last_root; in test_statmount_mnt_point() 391 mnt_root = sm->str + sm->mnt_root; in test_statmount_mnt_point() 392 last_root = strrchr(mnt_root, '/'); in test_statmount_mnt_point() 396 last_root = mnt_root; in test_statmount_mnt_point() 704 if (strcmp(root, sm->str + sm->mnt_root) != 0) { 705 ksft_test_result_fail("statmount returned incorrect mnt_root," 706 "statmount mnt_root: %s != %s\n", 707 sm->str + sm->mnt_root, root); 745 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 | 1042 mnt->mnt_mountpoint = mnt->mnt.mnt_root; 1105 if (unlikely(mnt->mnt_mountpoint == parent->mnt.mnt_root)) in mnt_add_to_ns() 1183 mnt->mnt.mnt_root == mnt->mnt.mnt_sb->s_root) in vfs_create_mount() 1239 m->mnt.mnt_root = dget(root); in vfs_kern_mount() 1240 m->mnt_mountpoint = m->mnt.mnt_root; in vfs_kern_mount() 1391 dput(mnt->mnt.mnt_root); in mntput_no_expire_slowpath() 2256 is_mnt_ns_file(src_mnt->mnt.mnt_root)) { in collect_paths() 2267 dst_mnt = clone_mnt(src_mnt, src_mnt->mnt.mnt_root, flag); in collect_paths() 2333 res[n].dentry = m->mnt.mnt_root; in __has_locked_children() 2426 if (mnt_ns_loop(p->mnt.mnt_root)) in lock_mnt_tree() 6205 struct mount *mnt_root; init_mount_tree() local [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 | fsopen.c | 191 if (target.mnt->mnt_root != target.dentry) in SYSCALL_DEFINE3()
|
| H A D | namei.c | 808 * path_connected - Verify that a dentry is below mnt.mnt_root 820 if (mnt->mnt_root == sb->s_root) in path_connected() 823 return is_subdir(dentry, mnt->mnt_root); in path_connected() 1498 if (mountpoint != m->mnt.mnt_root) { in choose_mountpoint_rcu() 1602 path->dentry = dget(mounted->mnt_root); in __traverse_mounts() 1659 path->dentry = dget(mounted->mnt_root); in follow_down_one() 1711 dentry = path->dentry = mounted->mnt.mnt_root; in __follow_mount_rcu() 2190 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in follow_dotdot_rcu() 2230 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in handle_dots()
|
| H A D | pidfs.c | 1194 pidfs_root_path.dentry = pidfs_mnt->mnt_root; in pidfs_init()
|
| /linux/security/landlock/ |
| H A D | fs.c | 962 if (walker_path.dentry == walker_path.mnt->mnt_root) { in is_access_to_paths_allowed() 992 walker_path.dentry = walker_path.mnt->mnt_root; in is_access_to_paths_allowed() 1124 const struct dentry *const mnt_root, in collect_domain_accesses() argument 1131 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom)) in collect_domain_accesses() 1165 if (dir == mnt_root || unlikely(IS_ROOT(dir))) in collect_domain_accesses() 1296 mnt_dir.dentry = new_dir->mnt->mnt_root; in current_check_refer_path() 1578 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 | 175 __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 D | mount.h | 59 struct dentry *mnt_root; /* root of the mounted tree */ member
|
| /linux/tools/perf/trace/beauty/include/uapi/linux/ |
| H A D | mount.h | 175 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member
|
| /linux/fs/configfs/ |
| H A D | mount.c | 125 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/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/fs/overlayfs/ |
| H A D | super.c | 548 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 D | params.c | 853 ovl_inuse_unlock(ovl_upper_mnt(ofs)->mnt_root); in ovl_free_fs()
|
| /linux/fs/tracefs/ |
| H A D | inode.c | 544 parent = tracefs_mount->mnt_root; in tracefs_start_creating()
|
| /linux/security/apparmor/ |
| H A D | mount.c | 584 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in aa_umount()
|
| H A D | apparmorfs.c | 2953 error = __aafs_ns_mkdir(root_ns, aafs_mnt->mnt_root, ".policy", in aa_create_aafs() 2954 aafs_mnt->mnt_root); in aa_create_aafs()
|
| /linux/fs/ext4/ |
| H A D | file.c | 935 path.dentry = mnt->mnt_root; in ext4_sample_last_mounted()
|
| /linux/security/selinux/ |
| H A D | selinuxfs.c | 1999 selinux_null.mnt->mnt_root); in init_sel_fs()
|
| /linux/fs/nfsd/ |
| H A D | nfs4xdr.c | 2890 if (cur.dentry == cur.mnt->mnt_root) { in nfsd4_encode_pathname4() 3132 if (path.dentry != path.mnt->mnt_root) in nfsd4_get_mounted_on_ino() 3602 args->dentry == args->exp->ex_path.mnt->mnt_root) { in nfsd4_encode_fattr4_mounted_on_fileid()
|