s/MAX_SAFE_MAXVNODES/MAXVNODES_MAX/g
This commit is contained in:
parent
023b80f953
commit
8f41b4e870
@ -257,8 +257,9 @@ int (*softdep_process_worklist_hook)(struct mount *);
|
|||||||
/*
|
/*
|
||||||
* Initialize the vnode management data structures.
|
* Initialize the vnode management data structures.
|
||||||
*/
|
*/
|
||||||
#define MAX_SAFE_MAXVNODES 100000
|
#ifndef MAXVNODES_MAX
|
||||||
|
#define MAXVNODES_MAX 100000
|
||||||
|
#endif
|
||||||
static void
|
static void
|
||||||
vntblinit(void *dummy __unused)
|
vntblinit(void *dummy __unused)
|
||||||
{
|
{
|
||||||
@ -272,11 +273,11 @@ vntblinit(void *dummy __unused)
|
|||||||
*/
|
*/
|
||||||
desiredvnodes = min(maxproc + cnt.v_page_count / 4, 2 * vm_kmem_size /
|
desiredvnodes = min(maxproc + cnt.v_page_count / 4, 2 * vm_kmem_size /
|
||||||
(5 * (sizeof(struct vm_object) + sizeof(struct vnode))));
|
(5 * (sizeof(struct vm_object) + sizeof(struct vnode))));
|
||||||
if (desiredvnodes > MAX_SAFE_MAXVNODES) {
|
if (desiredvnodes > MAXVNODES_MAX) {
|
||||||
if (bootverbose)
|
if (bootverbose)
|
||||||
printf("Reducing kern.maxvnodes %d -> %d\n",
|
printf("Reducing kern.maxvnodes %d -> %d\n",
|
||||||
desiredvnodes, MAX_SAFE_MAXVNODES);
|
desiredvnodes, MAXVNODES_MAX);
|
||||||
desiredvnodes = MAX_SAFE_MAXVNODES;
|
desiredvnodes = MAXVNODES_MAX;
|
||||||
}
|
}
|
||||||
minvnodes = desiredvnodes / 4;
|
minvnodes = desiredvnodes / 4;
|
||||||
mtx_init(&mountlist_mtx, "mountlist", NULL, MTX_DEF);
|
mtx_init(&mountlist_mtx, "mountlist", NULL, MTX_DEF);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user