Lines Matching refs:vp
383 vnode_t vp;
413 vp = nd.ni_vp;
417 ptr = vnode_mount(vp)->mnt_vfsstat.f_mntonname;
449 error = VFS_VPTOFH(vp, (int*)&nfh.nfh_len, &nfh.nfh_fid[0], NULL);
458 vnode_put(vp);
479 vnode_t vp;
520 error = nfsrv_fhtovp(&nfh, NULL, &vp, &nx, &nxo);
531 * Any error that causes an abort must vnode_put(vp).
538 if (vnode_vtype(vp) == VSOCK) {
544 if (vnode_isdir(vp) && (fmode & (FWRITE | O_TRUNC))) {
555 if ((error = vnode_authorize(vp, NULL, action, ctx)) != 0)
558 if ((error = VNOP_OPEN(vp, fmode, ctx)))
560 if ((error = vnode_ref_ext(vp, fmode)))
569 vn_close(vp, fmode & FMASK, ctx);
577 fp->f_fglob->fg_data = (caddr_t)vp;
591 if ((error = VNOP_ADVLOCK(vp, (caddr_t)fp->f_fglob, F_SETLK, &lf, type, ctx))) {
596 vn_close(vp, fp->f_fglob->fg_flag, &context);
603 vnode_put(vp);
614 vnode_put(vp);