Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-1-6]: src/sys/uvm Pull up revision 1.18 (requested by tls in tick...
details: https://anonhg.NetBSD.org/src/rev/036025ec6ff2
branches: netbsd-1-6
changeset: 530610:036025ec6ff2
user: tron <tron%NetBSD.org@localhost>
date: Tue Aug 26 06:46:16 2003 +0000
description:
Pull up revision 1.18 (requested by tls in ticket #1434):
Correct use of MAXBSIZE where MAXPHYS was intended. This is a necessary
first step towards per-device MAXPHYS, and has the beneficial side effect
of allowing clustering to MAXPHYS even on systems that need to run with
a reduced MAXBSIZE to get more metadata buffers.
diffstat:
sys/uvm/uvm_io.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 08b43dced4a8 -r 036025ec6ff2 sys/uvm/uvm_io.c
--- a/sys/uvm/uvm_io.c Mon Aug 25 17:54:01 2003 +0000
+++ b/sys/uvm/uvm_io.c Tue Aug 26 06:46:16 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: uvm_io.c,v 1.17 2001/11/10 07:37:00 lukem Exp $ */
+/* $NetBSD: uvm_io.c,v 1.17.10.1 2003/08/26 06:46:16 tron Exp $ */
/*
*
@@ -39,7 +39,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: uvm_io.c,v 1.17 2001/11/10 07:37:00 lukem Exp $");
+__KERNEL_RCSID(0, "$NetBSD: uvm_io.c,v 1.17.10.1 2003/08/26 06:46:16 tron Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -94,7 +94,7 @@
togo = togo - (endva - VM_MAXUSER_ADDRESS + 1);
pageoffset = baseva & PAGE_MASK;
baseva = trunc_page(baseva);
- chunksz = MIN(round_page(togo + pageoffset), MAXBSIZE);
+ chunksz = MIN(round_page(togo + pageoffset), trunc_page(MAXPHYS));
error = 0;
/*
Home |
Main Index |
Thread Index |
Old Index