Lines Matching refs:q
1817 struct mount *res, *p, *q, *r, *parent; in copy_tree() local
1825 res = q = clone_mnt(mnt, dentry, flag); in copy_tree()
1826 if (IS_ERR(q)) in copy_tree()
1827 return q; in copy_tree()
1829 q->mnt_mountpoint = mnt->mnt_mountpoint; in copy_tree()
1842 q = ERR_PTR(-EPERM); in copy_tree()
1856 q = q->mnt_parent; in copy_tree()
1859 parent = q; in copy_tree()
1860 q = clone_mnt(p, p->mnt.mnt_root, flag); in copy_tree()
1861 if (IS_ERR(q)) in copy_tree()
1864 list_add_tail(&q->mnt_list, &res->mnt_list); in copy_tree()
1865 attach_mnt(q, parent, p->mnt_mp); in copy_tree()
1876 return q; in copy_tree()
2189 struct mount *q; in attach_recursive_mnt() local
2191 q = __lookup_mnt(&child->mnt_parent->mnt, in attach_recursive_mnt()
2193 if (q) in attach_recursive_mnt()
2194 mnt_change_mountpoint(child, smp, q); in attach_recursive_mnt()
3327 struct mount *p, *q; in copy_mnt_ns() local
3370 q = new; in copy_mnt_ns()
3372 q->mnt_ns = new_ns; in copy_mnt_ns()
3376 new_fs->root.mnt = mntget(&q->mnt); in copy_mnt_ns()
3380 new_fs->pwd.mnt = mntget(&q->mnt); in copy_mnt_ns()
3385 q = next_mnt(q, new); in copy_mnt_ns()
3386 if (!q) in copy_mnt_ns()
3388 while (p->mnt.mnt_root != q->mnt.mnt_root) in copy_mnt_ns()