Lines Matching refs:new_mnt
1895 struct mount *new_mnt; in clone_private_mount() local
1900 new_mnt = clone_mnt(old_mnt, path->dentry, CL_PRIVATE); in clone_private_mount()
1901 if (IS_ERR(new_mnt)) in clone_private_mount()
1902 return ERR_CAST(new_mnt); in clone_private_mount()
1904 return &new_mnt->mnt; in clone_private_mount()
3650 struct mount *new_mnt, *root_mnt, *old_mnt, *root_parent, *ex_parent; in SYSCALL_DEFINE2() local
3678 new_mnt = real_mount(new.mnt); in SYSCALL_DEFINE2()
3681 ex_parent = new_mnt->mnt_parent; in SYSCALL_DEFINE2()
3687 if (!check_mnt(root_mnt) || !check_mnt(new_mnt)) in SYSCALL_DEFINE2()
3689 if (new_mnt->mnt.mnt_flags & MNT_LOCKED) in SYSCALL_DEFINE2()
3695 if (new_mnt == root_mnt || old_mnt == root_mnt) in SYSCALL_DEFINE2()
3704 if (!mnt_has_parent(new_mnt)) in SYSCALL_DEFINE2()
3710 if (!is_path_reachable(new_mnt, new.dentry, &root)) in SYSCALL_DEFINE2()
3713 umount_mnt(new_mnt); in SYSCALL_DEFINE2()
3716 new_mnt->mnt.mnt_flags |= MNT_LOCKED; in SYSCALL_DEFINE2()
3722 attach_mnt(new_mnt, root_parent, root_mp); in SYSCALL_DEFINE2()
3726 list_del_init(&new_mnt->mnt_expire); in SYSCALL_DEFINE2()