Lines Matching full:np
192 struct p9fs_node *np; in p9fs_node_cmp() local
195 np = vp->v_data; in p9fs_node_cmp()
198 if (np == NULL) in p9fs_node_cmp()
201 if (np->vqid.qid_path == qid->path) { in p9fs_node_cmp()
204 else if (np->vqid.qid_mode == qid->type && in p9fs_node_cmp()
205 np->vqid.qid_version == qid->version) in p9fs_node_cmp()
220 struct p9fs_node *np; in p9fs_destroy_node() local
222 np = *npp; in p9fs_destroy_node()
224 if (np == NULL) in p9fs_destroy_node()
228 P9FS_VFID_LOCK_DESTROY(np); in p9fs_destroy_node()
229 P9FS_VOFID_LOCK_DESTROY(np); in p9fs_destroy_node()
232 p9fs_dispose_node(&np); in p9fs_destroy_node()
252 p9fs_vget_common(struct mount *mp, struct p9fs_node *np, int flags, in p9fs_vget_common() argument
277 if (np == NULL) in p9fs_vget_common()
317 if (np == NULL) { in p9fs_vget_common()
318 np = uma_zalloc(p9fs_node_zone, M_WAITOK | M_ZERO); in p9fs_vget_common()
320 P9FS_VFID_LOCK_INIT(np); in p9fs_vget_common()
321 STAILQ_INIT(&np->vfid_list); in p9fs_vget_common()
322 p9fs_fid_add(np, fid, VFID); in p9fs_vget_common()
325 P9FS_VOFID_LOCK_INIT(np); in p9fs_vget_common()
326 STAILQ_INIT(&np->vofid_list); in p9fs_vget_common()
329 np->parent = parent; in p9fs_vget_common()
330 np->p9fs_ses = vses; /* Map the current session */ in p9fs_vget_common()
331 inode = &np->inode; in p9fs_vget_common()
341 vp->v_data = np; in p9fs_vget_common()
342 np->v_node = vp; in p9fs_vget_common()
343 inode = &np->inode; in p9fs_vget_common()
372 STAILQ_INSERT_TAIL(&vses->virt_node_list, np, p9fs_node_next); in p9fs_vget_common()
373 np->flags |= P9FS_NODE_IN_SESSION; in p9fs_vget_common()
380 * So cleanup the np allocated above in this context. in p9fs_vget_common()
382 if (!IS_ROOT(np)) { in p9fs_vget_common()
383 p9fs_destroy_node(&np); in p9fs_vget_common()
390 if (!IS_ROOT(np)) { in p9fs_vget_common()
391 p9fs_destroy_node(&np); in p9fs_vget_common()
504 struct p9fs_node *np; in p9fs_root() local
510 np = &vmp->p9fs_session.rnp; in p9fs_root()
514 P9_DEBUG(VOPS, "%s: node=%p name=%s\n",__func__, np, np->inode.i_name); in p9fs_root()
516 vfid = p9fs_get_fid(clnt, np, curthread->td_ucred, VFID, -1, &error); in p9fs_root()
531 error = p9fs_vget_common(mp, np, lkflags, np, vfid, vpp, NULL); in p9fs_root()
536 np->v_node = *vpp; in p9fs_root()
545 struct p9fs_node *np; in p9fs_statfs() local
552 np = &vmp->p9fs_session.rnp; in p9fs_statfs()
556 vfid = p9fs_get_fid(clnt, np, curthread->td_ucred, VFID, -1, &error); in p9fs_statfs()