summaryrefslogtreecommitdiffstats
path: root/sys/vm/vm_mmap.c
diff options
context:
space:
mode:
authordyson <dyson@FreeBSD.org>1995-12-13 12:28:39 +0000
committerdyson <dyson@FreeBSD.org>1995-12-13 12:28:39 +0000
commit37543c2e2488d4771d9363229c9006a02012d6a0 (patch)
tree1b10a6b886802b730f28c9fae706e2b13368e1dc /sys/vm/vm_mmap.c
parente06b61c7c6b1a09b4125416a4d440100dd9a64d9 (diff)
downloadFreeBSD-src-37543c2e2488d4771d9363229c9006a02012d6a0.zip
FreeBSD-src-37543c2e2488d4771d9363229c9006a02012d6a0.tar.gz
There was a bug that the size for an msync'ed region was not rounded
up. The effect of this was that msync with a size would generally sync 1 page less than it should. This problem was brought to my attention by Darrel Herbst <dherbst@gradin.cis.upenn.edu> and Ron Minnich <rminnich@sarnoff.com>.
Diffstat (limited to 'sys/vm/vm_mmap.c')
-rw-r--r--sys/vm/vm_mmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/vm/vm_mmap.c b/sys/vm/vm_mmap.c
index 5466ecb..5ef3afa 100644
--- a/sys/vm/vm_mmap.c
+++ b/sys/vm/vm_mmap.c
@@ -38,7 +38,7 @@
* from: Utah $Hdr: vm_mmap.c 1.6 91/10/21$
*
* @(#)vm_mmap.c 8.4 (Berkeley) 1/12/94
- * $Id: vm_mmap.c,v 1.31 1995/12/07 12:48:19 davidg Exp $
+ * $Id: vm_mmap.c,v 1.32 1995/12/11 04:58:17 dyson Exp $
*/
/*
@@ -329,7 +329,7 @@ msync(p, uap, retval)
map = &p->p_vmspace->vm_map;
addr = (vm_offset_t) uap->addr;
- size = (vm_size_t) uap->len;
+ size = round_page((vm_size_t) uap->len);
flags = uap->flags;
if (((int) addr & PAGE_MASK) || addr + size < addr ||
OpenPOWER on IntegriCloud