diff options
author | 2001-11-29 02:54:10 +0000 | |
---|---|---|
committer | 2001-11-29 02:54:10 +0000 | |
commit | 1d906b28f636a126918aaf7cc9e21b3a083aaad3 (patch) | |
tree | 74a48590be335c3fa926bbd3bcaa4abe91c2fe1e /sys/kern/vfs_subr.c | |
parent | typo (diff) | |
download | wireguard-openbsd-1d906b28f636a126918aaf7cc9e21b3a083aaad3.tar.xz wireguard-openbsd-1d906b28f636a126918aaf7cc9e21b3a083aaad3.zip |
Ooops. Revert part of the last commit that was completly wrong and wasn't supposed to be committed.
Diffstat (limited to 'sys/kern/vfs_subr.c')
-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; } } |