aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatthew Dillon <dillon@FreeBSD.org>1999-01-19 08:00:51 +0000
committerMatthew Dillon <dillon@FreeBSD.org>1999-01-19 08:00:51 +0000
commitba2871b74cf55bf786346e67ab056ffd87c7eeb1 (patch)
tree36a62963d1165f9859e7d5229c4baaaf801a4408
parent49837d6cd0723facd10aaf834e7784cb25277afa (diff)
Notes
-rw-r--r--sys/kern/vfs_bio.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c
index ee7ad1121124..30018b544f53 100644
--- a/sys/kern/vfs_bio.c
+++ b/sys/kern/vfs_bio.c
@@ -11,7 +11,7 @@
* 2. Absolutely no warranty of function or purpose is made by the author
* John S. Dyson.
*
- * $Id: vfs_bio.c,v 1.191 1999/01/10 01:58:25 eivind Exp $
+ * $Id: vfs_bio.c,v 1.192 1999/01/12 11:59:34 eivind Exp $
*/
/*
@@ -2171,7 +2171,8 @@ vfs_page_set_valid(struct buf *bp, vm_ooffset_t off, int pageno, vm_page_t m)
(vm_offset_t) (soff & PAGE_MASK),
(vm_offset_t) (eoff - soff));
sv = (bp->b_offset + bp->b_validoff + DEV_BSIZE - 1) & ~(DEV_BSIZE - 1);
- ev = (bp->b_offset + bp->b_validend) & ~(DEV_BSIZE - 1);
+ ev = (bp->b_offset + bp->b_validend + (DEV_BSIZE - 1)) &
+ ~(DEV_BSIZE - 1);
soff = qmax(sv, soff);
eoff = qmin(ev, eoff);
}