/linux-master/fs/ |
H A D | pnode.c | 45 if (m->mnt_ns == ns && is_path_reachable(m, m->mnt.mnt_root, root)) 101 if (m->mnt.mnt_root == mnt->mnt.mnt_root) { 232 if (!is_subdir(dest_mp->m_dentry, m->mnt.mnt_root)) 260 child = copy_tree(last_source, last_source->mnt.mnt_root, type); 343 if (child->mnt_mountpoint != mnt->mnt.mnt_root) 386 if (to->mnt.mnt_root != mp->m_dentry) 496 if (child->mnt_mountpoint == mnt->mnt.mnt_root) 526 if (child->mnt_mountpoint == mnt->mnt.mnt_root)
|
H A D | proc_namespace.c | 105 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; 140 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt }; 145 err = show_path(m, mnt->mnt_root); 176 err = sb->s_op->show_devname(m, mnt->mnt_root); 187 err = sb->s_op->show_options(m, mnt->mnt_root); 197 struct path mnt_path = { .dentry = mnt->mnt_root, .mnt = mnt };
|
H A D | namespace.c | 892 mnt->mnt_mountpoint = mnt->mnt.mnt_root; 1112 mnt->mnt.mnt_root = dget(fc->root); 1113 mnt->mnt_mountpoint = mnt->mnt.mnt_root; 1208 mnt->mnt.mnt_root = dget(root); 1209 mnt->mnt_mountpoint = mnt->mnt.mnt_root; 1266 dput(mnt->mnt.mnt_root); 1859 return path->mnt->mnt_root == path->dentry; 2005 is_mnt_ns_file(s->mnt.mnt_root)) { 2015 q = clone_mnt(p, p->mnt.mnt_root, flag); 2319 smp = get_mountpoint(source_mnt->mnt.mnt_root); [all...] |
H A D | d_path.c | 110 if (dentry == mnt->mnt.mnt_root) { 278 * path->dentry == path->mnt->mnt_root. In that case don't call d_dname 282 (!IS_ROOT(path->dentry) || path->dentry != path->mnt->mnt_root))
|
H A D | fsopen.c | 186 if (target.mnt->mnt_root != target.dentry)
|
H A D | namei.c | 645 * path_connected - Verify that a dentry is below mnt.mnt_root 657 if (mnt->mnt_root == sb->s_root) 660 return is_subdir(dentry, mnt->mnt_root); 1305 if (mountpoint != m->mnt.mnt_root) { 1401 path->dentry = dget(mounted->mnt_root); 1454 path->dentry = dget(mounted->mnt_root); 1509 dentry = path->dentry = mounted->mnt.mnt_root; 1883 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) { 1923 if (unlikely(nd->path.dentry == nd->path.mnt->mnt_root)) {
|
/linux-master/tools/testing/selftests/filesystems/statmount/ |
H A D | statmount_test.c | 411 const char *mnt_root, *last_dir, *last_root; local 423 mnt_root = sm->str + sm->mnt_root; 424 last_root = strrchr(mnt_root, '/'); 428 last_root = mnt_root; 598 test_statmount_string(STATMOUNT_MNT_ROOT, str_off(mnt_root), "mount root"); 601 test_statmount_string(all_mask, str_off(mnt_root), "mount root & all");
|
/linux-master/kernel/ |
H A D | usermode_driver.c | 72 info->wd.dentry = mnt->mnt_root; 86 info->wd.mnt->mnt_root != info->wd.dentry))
|
H A D | audit_tree.c | 673 return inode_to_key(d_backing_inode(mnt->mnt_root)) == 747 return tag_chunk(d_backing_inode(mnt->mnt_root), arg);
|
/linux-master/include/linux/ |
H A D | mount.h | 70 struct dentry *mnt_root; /* root of the mounted tree */ member in struct:vfsmount
|
/linux-master/include/uapi/linux/ |
H A D | mount.h | 173 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member in struct:statmount 202 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */
|
/linux-master/tools/include/uapi/linux/ |
H A D | mount.h | 173 __u32 mnt_root; /* [str] Root of mount relative to root of fs */ member in struct:statmount 202 #define STATMOUNT_MNT_ROOT 0x00000008U /* Want/got mnt_root */
|
/linux-master/fs/configfs/ |
H A D | mount.c | 126 return err ? ERR_PTR(err) : configfs_mount->mnt_root;
|
/linux-master/security/landlock/ |
H A D | fs.c | 736 if (walker_path.dentry == walker_path.mnt->mnt_root) { 828 * @mnt_root: Last directory to check. 833 * @mnt_root directory used as a mount point. This mount point is the common 835 * file. While walking from @dir to @mnt_root, we record all the domain's 844 * - false if the walk reached @mnt_root. 848 const struct dentry *const mnt_root, struct dentry *dir, 854 if (WARN_ON_ONCE(!domain || !mnt_root || !dir || !layer_masks_dom)) 879 /* We should not reach a root other than @mnt_root. */ 880 if (dir == mnt_root || WARN_ON_ONCE(IS_ROOT(dir))) 998 mnt_dir.dentry = new_dir->mnt->mnt_root; 846 collect_domain_accesses( const struct landlock_ruleset *const domain, const struct dentry *const mnt_root, struct dentry *dir, layer_mask_t (*const layer_masks_dom)[LANDLOCK_NUM_ACCESS_FS]) argument [all...] |
/linux-master/fs/overlayfs/ |
H A D | export.c | 489 if (real == layer->mnt->mnt_root) 505 if (parent == layer->mnt->mnt_root) { 571 if (parent == layer->mnt->mnt_root) {
|
H A D | super.c | 527 if (ovl_inuse_trylock(ovl_upper_mnt(ofs)->mnt_root)) { 1210 err = ovl_check_layer(sb, ofs, ovl_upper_mnt(ofs)->mnt_root, 1230 ofs->layers[i].mnt->mnt_root,
|
/linux-master/fs/devpts/ |
H A D | inode.c | 125 (path->mnt->mnt_root != sb->s_root)) 160 while (path.mnt->mnt_root == path.dentry)
|
/linux-master/security/ |
H A D | inode.c | 126 parent = mount->mnt_root;
|
/linux-master/fs/autofs/ |
H A D | dev-ioctl.c | 195 while (path.dentry == path.mnt->mnt_root) { 533 if (path.mnt->mnt_root == path.dentry) {
|
/linux-master/fs/debugfs/ |
H A D | inode.c | 338 parent = debugfs_mount->mnt_root; 376 parent = debugfs_mount->mnt_root;
|
/linux-master/security/tomoyo/ |
H A D | tomoyo.c | 428 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root };
|
/linux-master/fs/cachefiles/ |
H A D | cache.c | 194 .dentry = cache->mnt->mnt_root,
|
/linux-master/ipc/ |
H A D | mqueue.c | 898 struct dentry *root = mnt->mnt_root; 966 audit_inode_parent_hidden(name, mnt->mnt_root); 970 inode_lock_nested(d_inode(mnt->mnt_root), I_MUTEX_PARENT); 971 dentry = lookup_one_len(name->name, mnt->mnt_root, 989 inode_unlock(d_inode(mnt->mnt_root));
|
/linux-master/security/apparmor/ |
H A D | mount.c | 642 struct path path = { .mnt = mnt, .dentry = mnt->mnt_root };
|
/linux-master/fs/tracefs/ |
H A D | inode.c | 473 parent = tracefs_mount->mnt_root;
|