Properly guard definitions of DFLDSIZ, MAXDSIZ, DFLSSIZ, MAXSSIZ and

SGROWSIZ. They can be set in the kernel configuration file.
This commit is contained in:
Marcel Moolenaar 2011-10-04 17:00:50 +00:00
parent 7274b125c9
commit 66d18d0999
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=225995

View File

@ -141,11 +141,21 @@
#endif
#define MAXTSIZ (16*1024*1024)
#ifndef DFLDSIZ
#define DFLDSIZ (128*1024*1024)
#endif
#ifndef MAXDSIZ
#define MAXDSIZ (512*1024*1024)
#endif
#ifndef DFLSSIZ
#define DFLSSIZ (2*1024*1024)
#endif
#ifndef MAXSSIZ
#define MAXSSIZ (8*1024*1024)
#endif
#ifndef SGROWSIZ
#define SGROWSIZ (128*1024)
#endif
#ifdef ARM_USE_SMALL_ALLOC
#define UMA_MD_SMALL_ALLOC