Home
last modified time | relevance | path

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

12

/linux/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c375 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 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.c820 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()
2161 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in follow_dotdot_rcu()
2201 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in follow_dotdot()
H A Dpidfs.c1194 pidfs_root_path.dentry = pidfs_mnt->mnt_root; in pidfs_init()
/linux/security/landlock/
H A Dfs.c962 if (walker_path.dentry == walker_path.mnt->mnt_root) { in current_check_access_path()
992 walker_path.dentry = walker_path.mnt->mnt_root; in get_mode_access()
1103 * @mnt_root: Last directory to check.
1108 * @mnt_root directory used as a mount point. This mount point is the common
1110 * file. While walking from @dir to @mnt_root, we record all the domain's
1121 * the walk reached @mnt_root.
1124 const struct dentry *const mnt_root,
1131 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom)) in current_check_refer_path()
1165 if (dir == mnt_root || unlikely(IS_ROOT(dir))) in current_check_refer_path()
1296 mnt_dir.dentry = new_dir->mnt->mnt_root; in hook_sb_delete()
1030 collect_domain_accesses(const struct landlock_ruleset * const domain,const struct dentry * const mnt_root,struct dentry * dir,struct layer_access_masks * layer_masks_dom) collect_domain_accesses() argument
[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/ipc/
H A Dmqueue.c895 dentry = start_creating_noperm(mnt->mnt_root, &QSTR(name->name)); in mqueue_file_open()
951 audit_inode_parent_hidden(name, mnt->mnt_root); in SYSCALL_DEFINE1()
955 dentry = start_removing_noperm(mnt->mnt_root, &QSTR(name->name)); in SYSCALL_DEFINE1()
963 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/tracefs/
H A Dinode.c544 parent = tracefs_mount->mnt_root; in tracefs_start_creating()
/linux/security/apparmor/
H A Dmount.c584 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in aa_umount()
H A Dapparmorfs.c2953 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/overlayfs/
H A Dparams.c853 ovl_inuse_unlock(ovl_upper_mnt(ofs)->mnt_root); in ovl_free_fs()
/linux/fs/ext4/
H A Dfile.c935 path.dentry = mnt->mnt_root; in ext4_sample_last_mounted()
/linux/security/selinux/
H A Dselinuxfs.c1999 selinux_null.mnt->mnt_root); in init_sel_fs()
/linux/fs/nfsd/
H A Dnfs4xdr.c2890 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()
H A Dvfs.c189 while (path->dentry == path->mnt->mnt_root && follow_up(path)) in follow_to_parent()

12