Lines Matching refs:vp
504 vnode_t vp = ap->a_vp;
507 nfsnode_t np = VTONFS(vp);
513 nmp = VTONMP(vp);
520 vfs_isrdonly(vnode_mount(vp)))
538 if (vnode_isdir(vp)) {
630 vnode_t vp = ap->a_vp;
631 nfsnode_t np = VTONFS(vp);
637 nmp = VTONMP(vp);
642 vtype = vnode_vtype(vp);
652 nfs_vinvalbuf(vp, V_SAVE|V_IGNORE_WRITEERR, ctx, 1);
658 if ((error = nfs_vinvalbuf(vp, V_SAVE, ctx, 1)) == EINTR)
674 cache_purge(vp);
693 cache_purge(vp);
697 if ((error = nfs_vinvalbuf(vp, V_SAVE, ctx, 1)) == EINTR)
742 vnode_t vp = ap->a_vp;
743 nfsnode_t np = VTONFS(vp);
748 if (vnode_vtype(vp) != VREG)
750 nmp = VTONMP(vp);
762 nfs_vinvalbuf(vp, V_SAVE|V_IGNORE_WRITEERR, ctx, 1);
771 error = nfs_vinvalbuf(vp, V_SAVE, ctx, 1);
901 vnode_t vp = NFSTOV(np);
902 enum vtype vtype = vnode_vtype(vp);
909 cache_purge(vp);
915 error = nfs_vinvalbuf(vp, V_SAVE, ctx, 1);
996 vnode_t vp = ap->a_vp;
997 nfsnode_t np = VTONFS(vp);
1008 nmp = VTONMP(vp);
1015 if (vnode_vfsisrdonly(vp))
1020 switch (vnode_vtype(vp)) {
1041 if (vnode_vfsisrdonly(vp))
1052 error = nfs_vinvalbuf(vp, (vap->va_data_size ? V_SAVE : 0) , ctx, 1);
1127 nfs_vinvalbuf(vp, V_SAVE|V_IGNORE_WRITEERR, ctx, 1);
1134 ubc_setsize(vp, (off_t)vap->va_data_size); /* XXX error? */
1145 if ((np->n_flag & NMODIFIED) && (vnode_vtype(vp) == VREG)) {
1147 error = nfs_vinvalbuf(vp, V_SAVE, ctx, 1);
1164 dvp = vnode_getparent(vp);
1165 vname = vnode_getname(vp);
1203 ubc_setsize(vp, (off_t)np->n_size); /* XXX check error */
1879 vnode_t vp = ap->a_vp;
1880 nfsnode_t np = VTONFS(vp);
1884 struct nfsmount *nmp = VTONMP(vp);
1896 if (vnode_vtype(vp) != VREG) {
1921 nfs_vinvalbuf(vp, V_SAVE|V_IGNORE_WRITEERR, ctx, 1);
1938 error = nfs_vinvalbuf(vp, V_SAVE, ctx, 1);
2120 ubc_setsize(vp, (off_t)np->n_size); /* XXX errors */
3005 vnode_t vp = ap->a_vp;
3009 nfsnode_t np = VTONFS(vp);
3038 inuse = vnode_isinuse(vp, 0);
3062 error = nfs_vinvalbuf(vp, V_SAVE, ctx, 1);
3079 cache_purge(vp);
3113 vnode_recycle(vp);
3147 ubc_setsize(vp, 0);
3481 vnode_t vp = ap->a_vp;
3487 nfsnode_t np = VTONFS(vp);
3493 if (vnode_mount(vp) != vnode_mount(tdvp))
3496 nmp = VTONMP(vp);
3885 vnode_t vp = ap->a_vp;
3891 nfsnode_t np = VTONFS(vp);
3900 nmp = VTONMP(vp);
3943 cache_purge(vp);
3992 vnode_t vp = ap->a_vp;
3993 nfsnode_t np = VTONFS(vp);
3999 if (vnode_vtype(vp) != VDIR)
4002 nmp = VTONMP(vp);
4026 cache_purge(vp);
5141 vnode_t vp = ap->a_vp;
5142 nfsnode_t np = VTONFS(vp);
5149 nmp = VTONMP(vp);
5184 nmp = VTONMP(vp);
5204 nmp = VTONMP(vp);
5368 vnode_t vp = ap->a_vp;
5369 nfsnode_t np = VTONFS(vp);
5378 if (!vnode_isinuse(vp, 1) && (mp = vnode_mount(vp)) && !vfs_isrdonly(mp)) {
5389 vnode_setattr(vp, &vattr, ap->a_context);
5476 vnode_t vp = ap->a_vp;
5477 nfsnode_t np = VTONFS(vp);
5496 if (!vnode_isinuse(vp, 1) && (mp = vnode_mount(vp)) && !vfs_isrdonly(mp)) {
5507 vnode_setattr(vp, &vattr, ap->a_context);
5575 vnode_t vp = ap->a_vp;
5583 nfsnode_t np = VTONFS(vp);
5616 cred = ubc_getcred(vp);
5629 nmp = VTONMP(vp);
5858 vnode_t vp = ap->a_vp;
5864 nfsnode_t np = VTONFS(vp);
5868 struct nfsmount *nmp = VTONMP(vp);
5992 cred = ubc_getcred(vp);
6071 vnode_startwrite(vp);
6075 vnode_writedone(vp);
6089 vnode_writedone(vp);
6157 vnode_writedone(vp);
6246 vnode_t vp = ap->a_vp;
6247 struct nfsmount *nmp = VTONMP(vp);
6268 vnode_t vp = ap->a_vp;
6269 struct nfsmount *nmp = VTONMP(vp);