diff options
author | Matthew Dillon <dillon@FreeBSD.org> | 2001-12-14 04:01:08 +0000 |
---|---|---|
committer | Matthew Dillon <dillon@FreeBSD.org> | 2001-12-14 04:01:08 +0000 |
commit | 7ca592e0938b68f8f4bc2c1759f81f48d4cca0d0 (patch) | |
tree | 50f6416962a277ae29ca2c039b0258dbdab38095 /sys/kern/subr_param.c | |
parent | f6efcf64134135c5136cc9c1c3d170121a557502 (diff) | |
download | src-7ca592e0938b68f8f4bc2c1759f81f48d4cca0d0.tar.gz src-7ca592e0938b68f8f4bc2c1759f81f48d4cca0d0.zip |
Too many people are compiling kernels with maxusers set to 0 without the new
config. Hack the kernel to force auto-sizing if the old config is used.
Notes
Notes:
svn path=/head/; revision=87839
Diffstat (limited to 'sys/kern/subr_param.c')
-rw-r--r-- | sys/kern/subr_param.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_param.c b/sys/kern/subr_param.c index 4d47f0fa622b..e6d149854b61 100644 --- a/sys/kern/subr_param.c +++ b/sys/kern/subr_param.c @@ -133,7 +133,7 @@ init_param2(int physpages) { /* Base parameters */ - if ((maxusers = MAXUSERS) == 0) { + if ((maxusers = MAXUSERS) == 0 || maxusers == 8) { maxusers = physpages / (1024 * 1024 / PAGE_SIZE); if (maxusers < 32) maxusers = 32; |