diff options
author | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-29 02:54:11 +0000 |
---|---|---|
committer | Artur Grabowski <art@cvs.openbsd.org> | 2001-11-29 02:54:11 +0000 |
commit | b24b5c6e0c59409c4b610f1269ad4fd457f3b0be (patch) | |
tree | 2501628467dcc49b31209a72ccb54a6583872bb5 /sys/kern | |
parent | 3bffd53556036f07e60728fb6c77a4551874d3d4 (diff) |
Ooops. Revert part of the last commit that was completly wrong and wasn't supposed to be committed.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/vfs_subr.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index f3582edd29f..6f2c1be1388 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vfs_subr.c,v 1.74 2001/11/29 01:58:57 art Exp $ */ +/* $OpenBSD: vfs_subr.c,v 1.75 2001/11/29 02:54:10 art Exp $ */ /* $NetBSD: vfs_subr.c,v 1.53 1996/04/22 01:39:13 christos Exp $ */ /* @@ -2000,17 +2000,17 @@ vinvalbuf(vp, flags, cred, p, slpflag, slptimeo) struct uvm_object *uobj = &vp->v_uvm.u_obj; struct buf *bp; struct buf *nbp, *blist; - int s, error; + int s, error, rv; int flushflags = PGO_ALLPAGES|PGO_FREE|PGO_SYNCIO| (flags & V_SAVE ? PGO_CLEANIT : 0); /* XXXUBC this doesn't look at flags or slp* */ if (vp->v_type == VREG) { simple_lock(&uobj->vmobjlock); - error = (uobj->pgops->pgo_flush)(uobj, 0, 0, flushflags); + rv = (uobj->pgops->pgo_flush)(uobj, 0, 0, flushflags); simple_unlock(&uobj->vmobjlock); - if (error) { - return error; + if (!rv) { + return EIO; } } |