mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Don't peak into the malloc_type structure for limits. The desired vnodes
check should be sufficient. This is required for the pending removal of malloc_type limits.
This commit is contained in:
parent
a681180ac7
commit
5dacf95488
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=94723
@ -1111,8 +1111,7 @@ softdep_initialize()
|
||||
|
||||
LIST_INIT(&mkdirlisthd);
|
||||
LIST_INIT(&softdep_workitem_pending);
|
||||
max_softdeps = min(desiredvnodes * 8,
|
||||
M_INODEDEP->ks_limit / (2 * sizeof(struct inodedep)));
|
||||
max_softdeps = desiredvnodes * 8;
|
||||
pagedep_hashtbl = hashinit(desiredvnodes / 5, M_PAGEDEP,
|
||||
&pagedep_hash);
|
||||
sema_init(&pagedep_in_progress, "pagedep", PRIBIO, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user