diff options
author | peter <peter@FreeBSD.org> | 1998-05-01 15:04:35 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1998-05-01 15:04:35 +0000 |
commit | e5ab5108e0bd23f5d2803ace98244e35666ab2fb (patch) | |
tree | 0d841c47b9920dac6b31d7c4d747d8f3198ff995 /sys | |
parent | 786ba30d95ec9fa84d0d838c1a6440cc0b982344 (diff) | |
download | FreeBSD-src-e5ab5108e0bd23f5d2803ace98244e35666ab2fb.zip FreeBSD-src-e5ab5108e0bd23f5d2803ace98244e35666ab2fb.tar.gz |
Fix one problem with NFSv3 > 2GB file support.
Submitted by: bde
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/vfs_bio.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/kern/vfs_bio.c b/sys/kern/vfs_bio.c index bbba887..3c2b4c1 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.161 1998/04/15 17:46:30 bde Exp $ + * $Id: vfs_bio.c,v 1.162 1998/04/17 22:36:51 des Exp $ */ /* @@ -2199,8 +2199,8 @@ vfs_page_set_valid(struct buf *bp, vm_ooffset_t off, int pageno, vm_page_t m) off = off - pageno * PAGE_SIZE; sv = off + ((bp->b_validoff + DEV_BSIZE - 1) & ~(DEV_BSIZE - 1)); ev = off + ((bp->b_validend + DEV_BSIZE - 1) & ~(DEV_BSIZE - 1)); - soff = max(sv, soff); - eoff = min(ev, eoff); + soff = qmax(sv, soff); + eoff = qmin(ev, eoff); } if (eoff > soff) vm_page_set_validclean(m, |