hrm. ignore this.

On Mon, Jul 03, 2017 at 04:30:11PM +1000, David Gwynne wrote:
> the only thing using ks_limit is the ffs softdep code.
> 
> this cleans that up.
> 
> ok?
> 
> Index: ffs/ffs_softdep.c
> ===================================================================
> RCS file: /cvs/src/sys/ufs/ffs/ffs_softdep.c,v
> retrieving revision 1.135
> diff -u -p -r1.135 ffs_softdep.c
> --- ffs/ffs_softdep.c 7 Nov 2016 00:26:33 -0000       1.135
> +++ ffs/ffs_softdep.c 3 Jul 2017 06:26:41 -0000
> @@ -1159,12 +1159,7 @@ softdep_initialize(void)
>  
>       LIST_INIT(&mkdirlisthd);
>       LIST_INIT(&softdep_workitem_pending);
> -#ifdef KMEMSTATS
> -     max_softdeps = min (initialvnodes * 8,
> -         kmemstats[M_INODEDEP].ks_limit / (2 * sizeof(struct inodedep)));
> -#else
> -     max_softdeps = initialvnodes * 4;
> -#endif
> +     max_softdeps = initialvnodes * 8;
>       arc4random_buf(&softdep_hashkey, sizeof(softdep_hashkey));
>       pagedep_hashtbl = hashinit(initialvnodes / 5, M_PAGEDEP, M_WAITOK,
>           &pagedep_hash);

Reply via email to