Home
last modified time | relevance | path

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

12

/linux-6.15/fs/
H A Dpnode.c45 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) in get_peer_under_root()
101 if (m->mnt.mnt_root == mnt->mnt.mnt_root) { in do_make_slave()
232 if (!is_subdir(dest_mp->m_dentry, m->mnt.mnt_root)) in propagate_one()
264 child = copy_tree(last_source, last_source->mnt.mnt_root, type); in propagate_one()
347 if (child->mnt_mountpoint != mnt->mnt.mnt_root) in find_topper()
387 if (to->mnt.mnt_root != mp->m_dentry) in propagation_would_overmount()
497 if (child->mnt_mountpoint == mnt->mnt.mnt_root) in __propagate_umount()
527 if (child->mnt_mountpoint == mnt->mnt.mnt_root) in umount_list()
H A Dproc_namespace.c105 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; in show_vfsmnt()
140 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; in show_mountinfo()
145 err = show_path(m, mnt->mnt_root); in show_mountinfo()
176 err = sb->s_op->show_devname(m, mnt->mnt_root); in show_mountinfo()
187 err = sb->s_op->show_options(m, mnt->mnt_root); in show_mountinfo()
197 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; in show_vfsstat()
H A Dnamespace.c1276 mnt->mnt.mnt_root = dget(fc->root); in vfs_create_mount()
1372 mnt->mnt.mnt_root = dget(root); in clone_mnt()
1430 dput(mnt->mnt.mnt_root); in cleanup_mnt()
2454 if (mnt_ns_loop(p->mnt.mnt_root)) in check_for_nsfs_mounts()
2905 d_is_dir(mnt->mnt.mnt_root)) in graft_tree()
3427 if (!is_subdir(to->mnt.mnt_root, from->mnt.mnt_root)) in do_set_group()
3908 m->mnt_root == dentry) { in finish_automount()
4359 while (p->mnt.mnt_root != q->mnt.mnt_root) in copy_mnt_ns()
5667 offp = &sm->mnt_root; in statmount_string()
6074 orig.dentry = orig.mnt->mnt_root; in do_listmount()
[all …]
H A Dd_path.c110 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 Dinternal.h341 return path->mnt->mnt_root == path->dentry; in path_mounted()
H A Dfsopen.c185 if (target.mnt->mnt_root != target.dentry) in SYSCALL_DEFINE3()
/linux-6.15/tools/testing/selftests/filesystems/statmount/
H A Dstatmount_test.c402 const char *mnt_root, *last_dir, *last_root; in test_statmount_mnt_root() local
418 mnt_root = sm->str + sm->mnt_root; in test_statmount_mnt_root()
419 last_root = strrchr(mnt_root, '/'); in test_statmount_mnt_root()
423 last_root = mnt_root; in test_statmount_mnt_root()
688 test_statmount_string(STATMOUNT_MNT_ROOT, str_off(mnt_root), "mount root"); in main()
691 test_statmount_string(all_mask, str_off(mnt_root), "mount root & all"); in main()
/linux-6.15/kernel/
H A Dusermode_driver.c72 info->wd.dentry = mnt->mnt_root; in umd_load_blob()
86 info->wd.mnt->mnt_root != info->wd.dentry)) in umd_unload_blob()
/linux-6.15/security/landlock/
H A Dfs.c899 if (walker_path.dentry == walker_path.mnt->mnt_root) { in is_access_to_paths_allowed()
1033 const struct dentry *const mnt_root, struct dentry *dir, in collect_domain_accesses() argument
1039 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom)) in collect_domain_accesses()
1065 if (dir == mnt_root || WARN_ON_ONCE(IS_ROOT(dir))) in collect_domain_accesses()
1189 mnt_dir.dentry = new_dir->mnt->mnt_root; in current_check_refer_path()
1466 log_fs_change_topology_dentry(subject, handle_layer, mnt->mnt_root); in hook_sb_umount()
/linux-6.15/include/linux/
H A Dmount.h69 struct dentry *mnt_root; /* root of the mounted tree */ member
/linux-6.15/tools/perf/trace/beauty/include/uapi/linux/
H A Dmount.h173 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member
/linux-6.15/include/uapi/linux/
H A Dmount.h173 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member
/linux-6.15/samples/vfs/
H A Dsamples-vfs.h36 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member
H A Dtest-list-all-mounts.c144 (stmnt->mask & STATMOUNT_MNT_ROOT) ? stmnt->str + stmnt->mnt_root : "", in main()
H A Dmountinfo.c149 &buf->str[buf->mnt_root], in dump_mountinfo()
/linux-6.15/fs/overlayfs/
H A Dexport.c498 if (real == layer->mnt->mnt_root) in ovl_lookup_real_ancestor()
514 if (parent == layer->mnt->mnt_root) { in ovl_lookup_real_ancestor()
580 if (parent == layer->mnt->mnt_root) { in ovl_lookup_real()
H A Dsuper.c540 if (ovl_inuse_trylock(ovl_upper_mnt(ofs)->mnt_root)) { in ovl_get_upper()
1228 err = ovl_check_layer(sb, ofs, ovl_upper_mnt(ofs)->mnt_root, in ovl_check_overlapping_layers()
1248 ofs->layers[i].mnt->mnt_root, in ovl_check_overlapping_layers()
/linux-6.15/fs/configfs/
H A Dmount.c126 return err ? ERR_PTR(err) : configfs_mount->mnt_root; in configfs_pin_fs()
/linux-6.15/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-6.15/ipc/
H A Dmqueue.c898 struct dentry *root = mnt->mnt_root; in do_mq_open()
967 audit_inode_parent_hidden(name, mnt->mnt_root); in SYSCALL_DEFINE1()
971 inode_lock_nested(d_inode(mnt->mnt_root), I_MUTEX_PARENT); in SYSCALL_DEFINE1()
972 dentry = lookup_one_len(name->name, mnt->mnt_root, in SYSCALL_DEFINE1()
990 inode_unlock(d_inode(mnt->mnt_root)); in SYSCALL_DEFINE1()
/linux-6.15/security/
H A Dinode.c126 parent = mount->mnt_root; in securityfs_create_dentry()
/linux-6.15/fs/autofs/
H A Ddev-ioctl.c200 while (path.dentry == path.mnt->mnt_root) { in find_autofs_mount()
616 if (path.mnt->mnt_root == path.dentry) { in autofs_dev_ioctl_ismountpoint()
/linux-6.15/fs/debugfs/
H A Dinode.c347 parent = debugfs_mount->mnt_root; in debugfs_lookup()
385 parent = debugfs_mount->mnt_root; in start_creating()
/linux-6.15/fs/cachefiles/
H A Dcache.c195 .dentry = cache->mnt->mnt_root, in cachefiles_has_space()
/linux-6.15/security/tomoyo/
H A Dtomoyo.c428 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in tomoyo_sb_umount()

12