diff options
author | dyson <dyson@FreeBSD.org> | 1998-03-04 03:17:30 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1998-03-04 03:17:30 +0000 |
commit | 1ae42d49a8c03dba8b67e23583ae96ebc426a4cb (patch) | |
tree | ee9048ce3fb21bb0331ad4571f7b1da847a20347 /sys | |
parent | 9f3982f0f6d7493912022ff7b37436e9d976fb84 (diff) | |
download | FreeBSD-src-1ae42d49a8c03dba8b67e23583ae96ebc426a4cb.zip FreeBSD-src-1ae42d49a8c03dba8b67e23583ae96ebc426a4cb.tar.gz |
Fix a rounding error for the NFS buffer validend.
Submitted by: John W. De Boskey <jwd@unx.sas.com>
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_bio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index f92023e..d6d02b6d 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.151 1998/02/11 20:06:48 dg Exp $ + * $Id: vfs_bio.c,v 1.152 1998/03/01 04:18:42 dyson Exp $ */ /* @@ -2115,7 +2115,7 @@ vfs_page_set_valid(struct buf *bp, vm_ooffset_t off, int pageno, vm_page_t m) vm_ooffset_t sv, ev; off = off - pageno * PAGE_SIZE; sv = off + ((bp->b_validoff + DEV_BSIZE - 1) & ~(DEV_BSIZE - 1)); - ev = off + (bp->b_validend & ~(DEV_BSIZE - 1)); + ev = off + ((bp->b_validend + DEV_BSIZE - 1) & ~(DEV_BSIZE - 1)); soff = max(sv, soff); eoff = min(ev, eoff); } |