Lines Matching defs:old_mnt
2378 struct mount *old_mnt = real_mount(path->mnt);
2383 if (IS_MNT_UNBINDABLE(old_mnt))
2393 if (!check_mnt(old_mnt)) {
2394 if (!anon_ns_root(old_mnt))
2397 if (!check_for_nsfs_mounts(old_mnt))
2401 if (!ns_capable(old_mnt->mnt_ns->user_ns, CAP_SYS_ADMIN))
2404 if (__has_locked_children(old_mnt, path->dentry))
2407 new_mnt = clone_mnt(old_mnt, path->dentry, CL_PRIVATE);
4674 struct mount *new_mnt, *root_mnt, *old_mnt, *root_parent, *ex_parent;
4687 old_mnt = old_mp.parent;
4688 if (IS_ERR(old_mnt))
4689 return PTR_ERR(old_mnt);
4695 if (IS_MNT_SHARED(old_mnt) ||
4705 if (new_mnt == root_mnt || old_mnt == root_mnt)
4716 if (!is_path_reachable(old_mnt, old_mp.mp->m_dentry, new))
4731 attach_mnt(root_mnt, old_mnt, old_mp.mp);