From ae517b73863dfda3862716d9992d048e305a62a2 Mon Sep 17 00:00:00 2001 From: kris Date: Mon, 17 Oct 2005 00:16:54 +0000 Subject: [PATCH] MFC r1.72: Partially revert r1.67 which changed maxbcache and maxswzone from int to long without updating the version. This broke the corresponding tunables on sparc. Approved by: re (kensmith) --- sys/kern/subr_param.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index ee764072d3b8..833842b68c96 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -75,8 +75,8 @@ int maxfilesperproc; /* per-proc open files limit */ int ncallout; /* maximum # of timer events */ int nbuf; int nswbuf; -long maxswzone; /* max swmeta KVA storage */ -long maxbcache; /* max buffer cache KVA storage */ +int maxswzone; /* max swmeta KVA storage */ +int maxbcache; /* max buffer cache KVA storage */ int maxpipekva; /* Limit on pipe KVA */ u_long maxtsiz; /* max text size */ u_long dfldsiz; /* initial data size limit */ @@ -106,11 +106,11 @@ init_param1(void) #ifdef VM_SWZONE_SIZE_MAX maxswzone = VM_SWZONE_SIZE_MAX; #endif - TUNABLE_LONG_FETCH("kern.maxswzone", &maxswzone); + TUNABLE_INT_FETCH("kern.maxswzone", &maxswzone); #ifdef VM_BCACHE_SIZE_MAX maxbcache = VM_BCACHE_SIZE_MAX; #endif - TUNABLE_LONG_FETCH("kern.maxbcache", &maxbcache); + TUNABLE_INT_FETCH("kern.maxbcache", &maxbcache); maxtsiz = MAXTSIZ; TUNABLE_ULONG_FETCH("kern.maxtsiz", &maxtsiz);