Lines Matching refs:vp
834 vnode_t vp = NULL;
916 if ((error = nfs_mount_diskless(&nd.nd_root, "/", flags, &vp, &mp, ctx)))
918 if ((error = nfs_mount_diskless(&nd.nd_root, "/", MNT_ROOTFS, &vp, &mp, ctx)))
943 rootvp = vp;
966 error = nfs_getattr(VTONFS(vp), &nvattr, ctx, 0);
1055 vnode_t vp;
1094 vp = nd.ni_vp;
1096 if ((error = VNOP_FSYNC(vp, MNT_WAIT, ctx)) ||
1097 (error = buf_invalidateblks(vp, BUF_WRITE_DATA, 0, 0))) {
1098 vnode_put(vp);
1101 if (vnode_vtype(vp) != VDIR) {
1102 vnode_put(vp);
1111 vnode_put(vp);
1115 if (vnode_mountedhere(vp) != NULL) {
1116 vnode_put(vp);
1127 vnode_put(vp);
1155 vp->v_mountedhere = mp;
1156 mp->mnt_vnodecovered = vp;
1184 if ((error = mountnfs(&args, mp, m, ctx, &vp))) {
1199 *vpp = vp;
1211 nfs_vfs_mount(mount_t mp, vnode_t vp, user_addr_t data, vfs_context_t ctx)
1299 error = mountnfs(&args, mp, nam, ctx, &vp);
1818 vnode_t vp;
1844 vp = NFSTOV(nmp->nm_dnp);
1852 error = vflush(mp, vp, SKIPSWAP | flags);
1854 error = vflush(mp, NULLVP, flags); /* locks vp in the process */
1856 if (vnode_isinuse(vp, 1))
1858 error = vflush(mp, vp, flags);
1870 vnode_rele(vp);
1880 vfs_setfsprivate(mp, 0); /* don't want to end up using stale vp */
1969 vnode_t vp;
1975 vp = NFSTOV(nmp->nm_dnp);
1976 vpid = vnode_vid(vp);
1977 while ((error = vnode_getwithvid(vp, vpid))) {
1980 if ((error != ENOENT) || (vnode_vid(vp) == vpid))
1982 vpid = vnode_vid(vp);
1984 *vpp = vp;
2337 nfs_sync_callout(vnode_t vp, void *arg)
2342 if (LIST_EMPTY(&VTONFS(vp)->n_dirtyblkhd))
2344 if (VTONFS(vp)->n_wrbusy > 0)
2346 if (VTONFS(vp)->n_bflag & (NBFLUSHINPROG|NBINVALINPROG))
2349 error = nfs_flush(VTONFS(vp), cargs->waitfor, cargs->thd, 0);
2408 __unused vnode_t vp,