Lines Matching refs:q
1835 struct mount *res, *p, *q, *r, *parent; in copy_tree() local
1843 res = q = clone_mnt(mnt, dentry, flag); in copy_tree()
1844 if (IS_ERR(q)) in copy_tree()
1845 return q; in copy_tree()
1847 q->mnt_mountpoint = mnt->mnt_mountpoint; in copy_tree()
1860 q = ERR_PTR(-EPERM); in copy_tree()
1874 q = q->mnt_parent; in copy_tree()
1877 parent = q; in copy_tree()
1878 q = clone_mnt(p, p->mnt.mnt_root, flag); in copy_tree()
1879 if (IS_ERR(q)) in copy_tree()
1882 list_add_tail(&q->mnt_list, &res->mnt_list); in copy_tree()
1883 attach_mnt(q, parent, p->mnt_mp); in copy_tree()
1894 return q; in copy_tree()
2208 struct mount *q; in attach_recursive_mnt() local
2210 q = __lookup_mnt(&child->mnt_parent->mnt, in attach_recursive_mnt()
2212 if (q) in attach_recursive_mnt()
2213 mnt_change_mountpoint(child, smp, q); in attach_recursive_mnt()
3422 struct mount *p, *q; in copy_mnt_ns() local
3465 q = new; in copy_mnt_ns()
3467 q->mnt_ns = new_ns; in copy_mnt_ns()
3471 new_fs->root.mnt = mntget(&q->mnt); in copy_mnt_ns()
3475 new_fs->pwd.mnt = mntget(&q->mnt); in copy_mnt_ns()
3480 q = next_mnt(q, new); in copy_mnt_ns()
3481 if (!q) in copy_mnt_ns()
3483 while (p->mnt.mnt_root != q->mnt.mnt_root) in copy_mnt_ns()