diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-10 02:19:35 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-12-10 02:19:35 +0000 |
commit | b1d070269012496fc9ea43ab62f9f6d4c6855c86 (patch) | |
tree | af8fabc460253582a3035edc55928b90b5ff6cf7 /sys/nfs | |
parent | ba38727131150bb5ee5ae61df8d315ded024e57d (diff) |
Merge in struct uvm_vnode into struct vnode.
Diffstat (limited to 'sys/nfs')
-rw-r--r-- | sys/nfs/nfs_bio.c | 32 | ||||
-rw-r--r-- | sys/nfs/nfs_subs.c | 8 | ||||
-rw-r--r-- | sys/nfs/nfs_vfsops.c | 4 | ||||
-rw-r--r-- | sys/nfs/nfs_vnops.c | 4 |
4 files changed, 24 insertions, 24 deletions
diff --git a/sys/nfs/nfs_bio.c b/sys/nfs/nfs_bio.c index 2aa06ce249f..3d2a7934b8f 100644 --- a/sys/nfs/nfs_bio.c +++ b/sys/nfs/nfs_bio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_bio.c,v 1.30 2001/11/30 18:58:18 art Exp $ */ +/* $OpenBSD: nfs_bio.c,v 1.31 2001/12/10 02:19:34 art Exp $ */ /* $NetBSD: nfs_bio.c,v 1.25.4.2 1996/07/08 20:47:04 jtc Exp $ */ /* @@ -161,7 +161,7 @@ nfs_bioread(vp, uio, ioflag, cred) if (bytelen == 0) break; - win = ubc_alloc(&vp->v_uvm.u_obj, uio->uio_offset, + win = ubc_alloc(&vp->v_uobj, uio->uio_offset, &bytelen, UBC_READ); error = uiomove(win, bytelen, uio); ubc_release(win, 0); @@ -307,28 +307,28 @@ nfs_write(v) np->n_size = uio->uio_offset + bytelen; uvm_vnp_setsize(vp, np->n_size); } - win = ubc_alloc(&vp->v_uvm.u_obj, uio->uio_offset, &bytelen, + win = ubc_alloc(&vp->v_uobj, uio->uio_offset, &bytelen, UBC_WRITE); error = uiomove(win, bytelen, uio); ubc_release(win, 0); rv = 1; if ((ioflag & IO_SYNC)) { - simple_lock(&vp->v_uvm.u_obj.vmobjlock); - rv = vp->v_uvm.u_obj.pgops->pgo_flush( - &vp->v_uvm.u_obj, + simple_lock(&vp->v_uobj.vmobjlock); + rv = vp->v_uobj.pgops->pgo_flush( + &vp->v_uobj, oldoff & ~(nmp->nm_wsize - 1), uio->uio_offset & ~(nmp->nm_wsize - 1), PGO_CLEANIT|PGO_SYNCIO); - simple_unlock(&vp->v_uvm.u_obj.vmobjlock); + simple_unlock(&vp->v_uobj.vmobjlock); } else if ((oldoff & ~(nmp->nm_wsize - 1)) != (uio->uio_offset & ~(nmp->nm_wsize - 1))) { - simple_lock(&vp->v_uvm.u_obj.vmobjlock); - rv = vp->v_uvm.u_obj.pgops->pgo_flush( - &vp->v_uvm.u_obj, + simple_lock(&vp->v_uobj.vmobjlock); + rv = vp->v_uobj.pgops->pgo_flush( + &vp->v_uobj, oldoff & ~(nmp->nm_wsize - 1), uio->uio_offset & ~(nmp->nm_wsize - 1), PGO_CLEANIT|PGO_WEAK); - simple_unlock(&vp->v_uvm.u_obj.vmobjlock); + simple_unlock(&vp->v_uobj.vmobjlock); } if (!rv) { error = EIO; @@ -589,7 +589,7 @@ nfs_getpages(v) struct buf *bp, *mbp; struct vnode *vp = ap->a_vp; struct nfsnode *np = VTONFS(vp); - struct uvm_object *uobj = &vp->v_uvm.u_obj; + struct uvm_object *uobj = &vp->v_uobj; struct nfsmount *nmp = VFSTONFS(vp->v_mount); size_t bytes, iobytes, tailbytes, totalbytes, skipbytes; int flags = ap->a_flags; @@ -613,7 +613,7 @@ nfs_getpages(v) error = 0; origoffset = ap->a_offset; - eof = vp->v_uvm.u_size; + eof = vp->v_size; if (origoffset >= eof) { if ((flags & PGO_LOCKED) == 0) { simple_unlock(&uobj->vmobjlock); @@ -744,7 +744,7 @@ nfs_getpages(v) */ totalbytes = npages << PAGE_SHIFT; - bytes = MIN(totalbytes, vp->v_uvm.u_size - startoffset); + bytes = MIN(totalbytes, vp->v_size - startoffset); tailbytes = totalbytes - bytes; skipbytes = 0; @@ -999,11 +999,11 @@ nfs_putpages(v) UVMHIST_LOG(ubchist, "vp %p pgp %p count %d", vp, ap->a_m, ap->a_count,0); - simple_unlock(&vp->v_uvm.u_obj.vmobjlock); + simple_unlock(&vp->v_uobj.vmobjlock); error = 0; origoffset = pgs[0]->offset; - bytes = MIN(ap->a_count << PAGE_SHIFT, vp->v_uvm.u_size - origoffset); + bytes = MIN(ap->a_count << PAGE_SHIFT, vp->v_size - origoffset); skipbytes = 0; /* diff --git a/sys/nfs/nfs_subs.c b/sys/nfs/nfs_subs.c index 4a8bc11528d..efee3069743 100644 --- a/sys/nfs/nfs_subs.c +++ b/sys/nfs/nfs_subs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_subs.c,v 1.36 2001/11/27 05:27:12 art Exp $ */ +/* $OpenBSD: nfs_subs.c,v 1.37 2001/12/10 02:19:34 art Exp $ */ /* $NetBSD: nfs_subs.c,v 1.27.4.3 1996/07/08 20:34:24 jtc Exp $ */ /* @@ -1786,11 +1786,11 @@ nfs_clearcommit(mp) np->n_pushedhi = 0; np->n_commitflags &= ~(NFS_COMMIT_PUSH_VALID | NFS_COMMIT_PUSHED_VALID); - simple_lock(&vp->v_uvm.u_obj.vmobjlock); - TAILQ_FOREACH(pg, &vp->v_uvm.u_obj.memq, listq) { + simple_lock(&vp->v_uobj.vmobjlock); + TAILQ_FOREACH(pg, &vp->v_uobj.memq, listq) { pg->flags &= ~PG_NEEDCOMMIT; } - simple_unlock(&vp->v_uvm.u_obj.vmobjlock); + simple_unlock(&vp->v_uobj.vmobjlock); } splx(s); } diff --git a/sys/nfs/nfs_vfsops.c b/sys/nfs/nfs_vfsops.c index 91f84da52b6..2efb7eacd02 100644 --- a/sys/nfs/nfs_vfsops.c +++ b/sys/nfs/nfs_vfsops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vfsops.c,v 1.39 2001/11/27 05:27:12 art Exp $ */ +/* $OpenBSD: nfs_vfsops.c,v 1.40 2001/12/10 02:19:34 art Exp $ */ /* $NetBSD: nfs_vfsops.c,v 1.46.4.1 1996/05/25 22:40:35 fvdl Exp $ */ /* @@ -860,7 +860,7 @@ loop: goto loop; if (waitfor == MNT_LAZY || VOP_ISLOCKED(vp) || (LIST_EMPTY(&vp->v_dirtyblkhd) && - vp->v_uvm.u_obj.uo_npages == 0)) + vp->v_uobj.uo_npages == 0)) continue; if (vget(vp, LK_EXCLUSIVE, p)) goto loop; diff --git a/sys/nfs/nfs_vnops.c b/sys/nfs/nfs_vnops.c index 7aceef9300e..34831240777 100644 --- a/sys/nfs/nfs_vnops.c +++ b/sys/nfs/nfs_vnops.c @@ -1,4 +1,4 @@ -/* $OpenBSD: nfs_vnops.c,v 1.41 2001/12/04 22:44:32 art Exp $ */ +/* $OpenBSD: nfs_vnops.c,v 1.42 2001/12/10 02:19:34 art Exp $ */ /* $NetBSD: nfs_vnops.c,v 1.62.4.1 1996/07/08 20:26:52 jtc Exp $ */ /* @@ -2659,7 +2659,7 @@ nfs_flush(vp, cred, waitfor, p, commit) struct proc *p; int commit; { - struct uvm_object *uobj = &vp->v_uvm.u_obj; + struct uvm_object *uobj = &vp->v_uobj; struct nfsnode *np = VTONFS(vp); int error; int flushflags = PGO_ALLPAGES|PGO_CLEANIT|PGO_SYNCIO; |