Lines Matching refs:old

1033 static struct mount *clone_mnt(struct mount *old, struct dentry *root,
1036 struct super_block *sb = old->mnt.mnt_sb;
1040 mnt = alloc_vfsmnt(old->mnt_devname);
1047 mnt->mnt_group_id = old->mnt_group_id;
1055 mnt->mnt.mnt_flags = old->mnt.mnt_flags;
1068 ((flag & CL_SHARED_TO_SLAVE) && IS_MNT_SHARED(old))) {
1069 list_add(&mnt->mnt_slave, &old->mnt_slave_list);
1070 mnt->mnt_master = old;
1073 if ((flag & CL_MAKE_SHARED) || IS_MNT_SHARED(old))
1074 list_add(&mnt->mnt_share, &old->mnt_share);
1075 if (IS_MNT_SLAVE(old))
1076 list_add(&mnt->mnt_slave, &old->mnt_slave);
1077 mnt->mnt_master = old->mnt_master;
1087 if (!list_empty(&old->mnt_expire))
1088 list_add(&mnt->mnt_expire, &old->mnt_expire);
1613 * to rootfs. GC would eventually take care of the old vfsmount.
2054 unsigned int mounts = 0, old, pending, sum;
2060 old = ns->mounts;
2062 sum = old + pending;
2063 if ((old > sum) ||
2332 struct mount *mnt = ERR_PTR(-EINVAL), *old = real_mount(old_path->mnt);
2334 if (IS_MNT_UNBINDABLE(old))
2337 if (!check_mnt(old) && old_path->dentry->d_op != &ns_dentry_operations)
2340 if (!recurse && has_locked_children(old, old_path->dentry))
2344 mnt = copy_tree(old, old_path->dentry, CL_COPY_MNT_NS_FILE);
2346 mnt = clone_mnt(old, old_path->dentry, 0);
2691 struct mount *old;
2701 old = real_mount(old_path->mnt);
2703 parent = old->mnt_parent;
2704 attached = mnt_has_parent(old);
2705 old_mp = old->mnt_mp;
2706 ns = old->mnt_ns;
2714 if (!is_mounted(&old->mnt))
2718 if (!(attached ? check_mnt(old) : is_anon_ns(ns)))
2721 if (old->mnt.mnt_flags & MNT_LOCKED)
2739 if (IS_MNT_SHARED(p) && tree_contains_unbindable(old))
2742 if (!check_for_nsfs_mounts(old))
2745 if (p == old)
2748 err = attach_recursive_mnt(old, real_mount(new_path->mnt), mp,
2755 list_del_init(&old->mnt_expire);
3329 struct mount *old;
3340 old = ns->root;
3351 new = copy_tree(old, old->mnt.mnt_root, copy_flags);
3370 p = old;
3385 p = next_mnt(p, old);
3390 p = next_mnt(p, old);
3724 struct path new, old, root;
3738 LOOKUP_FOLLOW | LOOKUP_DIRECTORY, &old);
3742 error = security_sb_pivotroot(&old, &new);
3747 old_mp = lock_mount(&old);
3755 old_mnt = real_mount(old.mnt);
3782 if (!is_path_reachable(old_mnt, old.dentry, &new))
3794 /* mount old root on put_old */
3813 path_put(&old);
4115 /* revert to old namespace */