Module Name: src Committed By: ad Date: Tue Jan 28 16:35:39 UTC 2020
Modified Files: src/sys/kern: init_main.c Log Message: Call radix_tree_init() earlier, so more stuff can make use of radixtree. To generate a diff of this commit: cvs rdiff -u -r1.518 -r1.519 src/sys/kern/init_main.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/kern/init_main.c diff -u src/sys/kern/init_main.c:1.518 src/sys/kern/init_main.c:1.519 --- src/sys/kern/init_main.c:1.518 Wed Jan 8 17:38:42 2020 +++ src/sys/kern/init_main.c Tue Jan 28 16:35:39 2020 @@ -1,4 +1,4 @@ -/* $NetBSD: init_main.c,v 1.518 2020/01/08 17:38:42 ad Exp $ */ +/* $NetBSD: init_main.c,v 1.519 2020/01/28 16:35:39 ad Exp $ */ /*- * Copyright (c) 2008, 2009, 2019 The NetBSD Foundation, Inc. @@ -97,7 +97,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.518 2020/01/08 17:38:42 ad Exp $"); +__KERNEL_RCSID(0, "$NetBSD: init_main.c,v 1.519 2020/01/28 16:35:39 ad Exp $"); #include "opt_ddb.h" #include "opt_inet.h" @@ -329,6 +329,9 @@ main(void) mutex_obj_init(); rw_obj_init(); + /* Initialize radix trees (used by numerous subsystems). */ + radix_tree_init(); + /* Passive serialization. */ pserialize_init(); @@ -480,7 +483,6 @@ main(void) /* Initialize fstrans. */ fstrans_init(); - radix_tree_init(); /* used for page cache */ vfsinit(); lf_init();