aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-09-27 00:27:32 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-09-27 00:27:32 +0000
commitadec8f43387c91bdf13103ba82c16a2af8b77f27 (patch)
tree264dc58b3f1be4df4474601eaf35002ada14db16 /sys/dev
parente701df7d617afae62e7cc66f7e1b6a0a287a0fe5 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/vn/vn.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/vn/vn.c b/sys/dev/vn/vn.c
index 377c37df86fff..2994fda03fe8b 100644
--- a/sys/dev/vn/vn.c
+++ b/sys/dev/vn/vn.c
@@ -334,8 +334,7 @@ vnstrategy(struct buf *bp)
* If the request crosses EOF, truncate the request.
*/
if (pbn + sz > vn->sc_size) {
- bp->b_bcount -= (pbn + sz - vn->sc_size) *
- vn->sc_secsize;
+ bp->b_bcount = (vn->sc_size - pbn) * vn->sc_secsize;
bp->b_resid = bp->b_bcount;
}
bp->b_pblkno = pbn;