Lines Matching refs:q
1774 struct mount *res, *p, *q, *r, *parent; in copy_tree() local
1782 res = q = clone_mnt(mnt, dentry, flag); in copy_tree()
1783 if (IS_ERR(q)) in copy_tree()
1784 return q; in copy_tree()
1786 q->mnt_mountpoint = mnt->mnt_mountpoint; in copy_tree()
1799 q = ERR_PTR(-EPERM); in copy_tree()
1813 q = q->mnt_parent; in copy_tree()
1816 parent = q; in copy_tree()
1817 q = clone_mnt(p, p->mnt.mnt_root, flag); in copy_tree()
1818 if (IS_ERR(q)) in copy_tree()
1821 list_add_tail(&q->mnt_list, &res->mnt_list); in copy_tree()
1822 attach_mnt(q, parent, p->mnt_mp); in copy_tree()
1833 return q; in copy_tree()
2116 struct mount *q; in attach_recursive_mnt() local
2118 q = __lookup_mnt(&child->mnt_parent->mnt, in attach_recursive_mnt()
2120 if (q) in attach_recursive_mnt()
2121 mnt_change_mountpoint(child, smp, q); in attach_recursive_mnt()
3247 struct mount *p, *q; in copy_mnt_ns() local
3290 q = new; in copy_mnt_ns()
3292 q->mnt_ns = new_ns; in copy_mnt_ns()
3296 new_fs->root.mnt = mntget(&q->mnt); in copy_mnt_ns()
3300 new_fs->pwd.mnt = mntget(&q->mnt); in copy_mnt_ns()
3305 q = next_mnt(q, new); in copy_mnt_ns()
3306 if (!q) in copy_mnt_ns()
3308 while (p->mnt.mnt_root != q->mnt.mnt_root) in copy_mnt_ns()