Lines Matching refs:old
945 * @new_mp. And mount @new_parent on the old parent and old
983 * old parent and old mountpoint of @mnt. Finally, attach @parent to
1002 * @parent's old parent, not @parent. IOW, @mnt->mnt_parent
1166 static struct mount *clone_mnt(struct mount *old, struct dentry *root,
1169 struct super_block *sb = old->mnt.mnt_sb;
1173 mnt = alloc_vfsmnt(old->mnt_devname);
1180 mnt->mnt_group_id = old->mnt_group_id;
1188 mnt->mnt.mnt_flags = old->mnt.mnt_flags;
1192 mnt->mnt.mnt_idmap = mnt_idmap_get(mnt_idmap(&old->mnt));
1203 ((flag & CL_SHARED_TO_SLAVE) && IS_MNT_SHARED(old))) {
1204 list_add(&mnt->mnt_slave, &old->mnt_slave_list);
1205 mnt->mnt_master = old;
1208 if ((flag & CL_MAKE_SHARED) || IS_MNT_SHARED(old))
1209 list_add(&mnt->mnt_share, &old->mnt_share);
1210 if (IS_MNT_SLAVE(old))
1211 list_add(&mnt->mnt_slave, &old->mnt_slave);
1212 mnt->mnt_master = old->mnt_master;
1222 if (!list_empty(&old->mnt_expire))
1223 list_add(&mnt->mnt_expire, &old->mnt_expire);
1760 * to rootfs. GC would eventually take care of the old vfsmount.
2577 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt);
2579 if (IS_MNT_UNBINDABLE(old))
2582 if (!check_mnt(old) && old_path->dentry->d_op != &ns_dentry_operations)
2585 if (!recurse && has_locked_children(old, old_path->dentry))
2589 mnt = copy_tree(old, old_path->dentry, CL_COPY_MNT_NS_FILE);
2591 mnt = clone_mnt(old, old_path->dentry, 0);
3114 struct mount *old;
3125 old = real_mount(old_path->mnt);
3127 parent = old->mnt_parent;
3128 attached = mnt_has_parent(old);
3131 old_mp = old->mnt_mp;
3132 ns = old->mnt_ns;
3140 if (!is_mounted(&old->mnt))
3144 if (!(attached ? check_mnt(old) : is_anon_ns(ns)))
3147 if (old->mnt.mnt_flags & MNT_LOCKED)
3176 if (IS_MNT_SHARED(p) && tree_contains_unbindable(old))
3179 if (!check_for_nsfs_mounts(old))
3182 if (p == old)
3185 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp, flags);
3191 list_del_init(&old->mnt_expire);
3761 struct mount *old;
3772 old = ns->root;
3783 new = copy_tree(old, old->mnt.mnt_root, copy_flags);
3802 p = old;
3817 p = next_mnt(p, old);
3823 p = next_mnt(skip_mnt_tree(p), old);
4180 struct path new, old, root;
4194 LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &old);
4198 error = security_sb_pivotroot(&old, &new);
4203 old_mp = lock_mount(&old);
4211 old_mnt = real_mount(old.mnt);
4238 if (!is_path_reachable(old_mnt, old.dentry, &new))
4250 /* mount old root on put_old */
4269 path_put(&old);
4987 /* revert to old namespace */