From 06fd697d158b4322c92284a8e5974e02522872ae Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Mon, 1 Feb 1999 08:36:02 +0000 Subject: [PATCH] The alternate B_PAGING path for vnstrategy() is used for VM faults as well as swap I/O now. This path failed to properly set bp->b_resid on I/O completion. --- sys/dev/vn/vn.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c index 0944f85a6e70..2a6d791f955c 100644 --- a/sys/dev/vn/vn.c +++ b/sys/dev/vn/vn.c @@ -38,7 +38,7 @@ * from: Utah Hdr: vn.c 1.13 94/04/02 * * from: @(#)vn.c 8.6 (Berkeley) 4/1/94 - * $Id: vn.c,v 1.72 1999/01/21 17:17:02 peter Exp $ + * $Id: vn.c,v 1.73 1999/01/23 00:28:56 peter Exp $ */ /* @@ -411,6 +411,7 @@ vnstrategy(struct buf *bp) addr += sz; resid -= sz; } + bp->b_resid = resid; biodone(bp); putvnbuf(nbp); }