summaryrefslogtreecommitdiff
path: root/sys/ufs/mfs/mfs_vnops.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>1999-03-17 18:34:16 +0000
committerArtur Grabowski <art@cvs.openbsd.org>1999-03-17 18:34:16 +0000
commitdac6ae83c421c4b0f1fd0fa786e9d8ef6c66e9d3 (patch)
tree09122b51b5d6e6deb6419198a5354a1219bc58b0 /sys/ufs/mfs/mfs_vnops.c
parent38f1787284c874d54eeceed5c40016fc9cdddfeb (diff)
If an mfs io is successful set b_resid to 0.
From Chuck Silvers <chs@netbsd>.
Diffstat (limited to 'sys/ufs/mfs/mfs_vnops.c')
-rw-r--r--sys/ufs/mfs/mfs_vnops.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/ufs/mfs/mfs_vnops.c b/sys/ufs/mfs/mfs_vnops.c
index b2474c64784..83f481799ec 100644
--- a/sys/ufs/mfs/mfs_vnops.c
+++ b/sys/ufs/mfs/mfs_vnops.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mfs_vnops.c,v 1.11 1999/01/22 21:15:21 art Exp $ */
+/* $OpenBSD: mfs_vnops.c,v 1.12 1999/03/17 18:34:15 art Exp $ */
/* $NetBSD: mfs_vnops.c,v 1.8 1996/03/17 02:16:32 christos Exp $ */
/*
@@ -213,6 +213,8 @@ mfs_doio(bp, base)
bp->b_error = copyout(bp->b_data, base, bp->b_bcount);
if (bp->b_error)
bp->b_flags |= B_ERROR;
+ else
+ bp->b_resid = 0;
biodone(bp);
}