Home
last modified time | relevance | path

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

12

/linux-6.1.9/fs/
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()
146 err = sb->s_op->show_path(m, mnt->mnt_root); in show_mountinfo()
150 seq_dentry(m, mnt->mnt_root, " \t\n\\"); in show_mountinfo()
180 err = sb->s_op->show_devname(m, mnt->mnt_root); in show_mountinfo()
191 err = sb->s_op->show_options(m, mnt->mnt_root); in show_mountinfo()
201 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; in show_vfsstat()
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()
233 if (!is_subdir(mp->m_dentry, m->mnt.mnt_root)) in propagate_one()
261 child = copy_tree(last_source, last_source->mnt.mnt_root, type); in propagate_one()
345 if (child->mnt_mountpoint != mnt->mnt.mnt_root) in find_topper()
458 if (child->mnt_mountpoint == mnt->mnt.mnt_root) in __propagate_umount()
488 if (child->mnt_mountpoint == mnt->mnt.mnt_root) in umount_list()
Dnamespace.c884 mnt->mnt_mountpoint = mnt->mnt.mnt_root; in unhash_mnt()
1026 mnt->mnt.mnt_root = dget(fc->root); in vfs_create_mount()
1027 mnt->mnt_mountpoint = mnt->mnt.mnt_root; in vfs_create_mount()
1127 mnt->mnt.mnt_root = dget(root); in clone_mnt()
1128 mnt->mnt_mountpoint = mnt->mnt.mnt_root; in clone_mnt()
1185 dput(mnt->mnt.mnt_root); in cleanup_mnt()
1783 if (path->dentry != path->mnt->mnt_root) in can_umount()
1911 is_mnt_ns_file(s->mnt.mnt_root)) { in copy_tree()
1921 q = clone_mnt(p, p->mnt.mnt_root, flag); in copy_tree()
2214 smp = get_mountpoint(source_mnt->mnt.mnt_root); in attach_recursive_mnt()
[all …]
Dd_path.c109 if (dentry == mnt->mnt.mnt_root) { in __prepend_path()
281 (!IS_ROOT(path->dentry) || path->dentry != path->mnt->mnt_root)) in d_path()
Dfsopen.c186 if (target.mnt->mnt_root != target.dentry) in SYSCALL_DEFINE3()
Dnamei.c652 if (mnt->mnt_root == sb->s_root) in path_connected()
655 return is_subdir(dentry, mnt->mnt_root); in path_connected()
1300 if (mountpoint != m->mnt.mnt_root) { in choose_mountpoint_rcu()
1396 path->dentry = dget(mounted->mnt_root); in __traverse_mounts()
1449 path->dentry = dget(mounted->mnt_root); in follow_down_one()
1504 dentry = path->dentry = mounted->mnt.mnt_root; in __follow_mount_rcu()
1872 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in follow_dotdot_rcu()
1912 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { in follow_dotdot()
Dstat.c238 if (path.mnt->mnt_root == path.dentry) in vfs_statx()
/linux-6.1.9/kernel/
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()
Daudit_tree.c673 return inode_to_key(d_backing_inode(mnt->mnt_root)) == in compare_root()
747 return tag_chunk(d_backing_inode(mnt->mnt_root), arg); in tag_mount()
/linux-6.1.9/security/landlock/
Dfs.c597 if (walker_path.dentry == walker_path.mnt->mnt_root) { in check_access_path_dual()
723 const struct dentry *const mnt_root, struct dentry *dir, in collect_domain_accesses() argument
729 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom)) in collect_domain_accesses()
753 if (dir == mnt_root || WARN_ON_ONCE(IS_ROOT(dir))) in collect_domain_accesses()
871 mnt_dir.dentry = new_dir->mnt->mnt_root; in current_check_refer_path()
/linux-6.1.9/fs/btrfs/
Dsuper.c1875 struct vfsmount *mnt_root; in btrfs_mount() local
1889 mnt_root = vfs_kern_mount(&btrfs_root_fs_type, flags, device_name, data); in btrfs_mount()
1890 if (PTR_ERR_OR_ZERO(mnt_root) == -EBUSY) { in btrfs_mount()
1892 mnt_root = vfs_kern_mount(&btrfs_root_fs_type, in btrfs_mount()
1895 mnt_root = vfs_kern_mount(&btrfs_root_fs_type, in btrfs_mount()
1897 if (IS_ERR(mnt_root)) { in btrfs_mount()
1898 root = ERR_CAST(mnt_root); in btrfs_mount()
1903 down_write(&mnt_root->mnt_sb->s_umount); in btrfs_mount()
1904 error = btrfs_remount(mnt_root->mnt_sb, &flags, NULL); in btrfs_mount()
1905 up_write(&mnt_root->mnt_sb->s_umount); in btrfs_mount()
[all …]
/linux-6.1.9/include/linux/
Dmount.h70 struct dentry *mnt_root; /* root of the mounted tree */ member
/linux-6.1.9/fs/configfs/
Dmount.c126 return err ? ERR_PTR(err) : configfs_mount->mnt_root; in configfs_pin_fs()
/linux-6.1.9/fs/overlayfs/
Dexport.c505 if (real == layer->mnt->mnt_root) in ovl_lookup_real_ancestor()
521 if (parent == layer->mnt->mnt_root) { in ovl_lookup_real_ancestor()
587 if (parent == layer->mnt->mnt_root) { in ovl_lookup_real()
Dsuper.c237 ovl_inuse_unlock(ovl_upper_mnt(ofs)->mnt_root); in ovl_free_fs()
1260 if (ovl_inuse_trylock(ovl_upper_mnt(ofs)->mnt_root)) { in ovl_get_upper()
1921 err = ovl_check_layer(sb, ofs, ovl_upper_mnt(ofs)->mnt_root, in ovl_check_overlapping_layers()
1941 ofs->layers[i].mnt->mnt_root, in ovl_check_overlapping_layers()
/linux-6.1.9/security/
Dinode.c126 parent = mount->mnt_root; in securityfs_create_dentry()
/linux-6.1.9/fs/devpts/
Dinode.c144 (path->mnt->mnt_root != sb->s_root)) in devpts_ptmx_path()
179 while (path.mnt->mnt_root == path.dentry) in devpts_mntget()
/linux-6.1.9/fs/autofs/
Ddev-ioctl.c195 while (path.dentry == path.mnt->mnt_root) { in find_autofs_mount()
533 if (path.mnt->mnt_root == path.dentry) { in autofs_dev_ioctl_ismountpoint()
/linux-6.1.9/ipc/
Dmqueue.c897 struct dentry *root = mnt->mnt_root; in do_mq_open()
965 audit_inode_parent_hidden(name, mnt->mnt_root); in SYSCALL_DEFINE1()
969 inode_lock_nested(d_inode(mnt->mnt_root), I_MUTEX_PARENT); in SYSCALL_DEFINE1()
970 dentry = lookup_one_len(name->name, mnt->mnt_root, in SYSCALL_DEFINE1()
988 inode_unlock(d_inode(mnt->mnt_root)); in SYSCALL_DEFINE1()
/linux-6.1.9/fs/debugfs/
Dinode.c331 parent = debugfs_mount->mnt_root; in debugfs_lookup()
369 parent = debugfs_mount->mnt_root; in start_creating()
/linux-6.1.9/fs/cachefiles/
Dcache.c192 .dentry = cache->mnt->mnt_root, in cachefiles_has_space()
/linux-6.1.9/security/tomoyo/
Dtomoyo.c414 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in tomoyo_sb_umount()
/linux-6.1.9/fs/tracefs/
Dinode.c420 parent = tracefs_mount->mnt_root; in start_creating()
/linux-6.1.9/security/apparmor/
Dmount.c618 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root }; in aa_umount()
/linux-6.1.9/fs/ext4/
Dfile.c835 path.dentry = mnt->mnt_root; in ext4_sample_last_mounted()

12