diff options
author | pjd <pjd@FreeBSD.org> | 2007-04-15 09:10:17 +0000 |
---|---|---|
committer | pjd <pjd@FreeBSD.org> | 2007-04-15 09:10:17 +0000 |
commit | 1e51d3c721582f0306afd3454bad76209cb3d845 (patch) | |
tree | 11a01f4d3f481ca39f0b38ecedaa2f64f4c0e1aa | |
parent | 7605c12c0f2bf784960d36288b7cb6e451b99a15 (diff) | |
download | FreeBSD-src-1e51d3c721582f0306afd3454bad76209cb3d845.zip FreeBSD-src-1e51d3c721582f0306afd3454bad76209cb3d845.tar.gz |
MFp4: Start DNLC after desiredvnodes variable is initialized.
Before this change if zfs.ko was loaded by the loader, DNLC was
automatically disabled.
Reported by: Zephiris <zephiris@gmail.com>
-rw-r--r-- | sys/cddl/contrib/opensolaris/uts/common/fs/dnlc.c | 4 | ||||
-rw-r--r-- | sys/contrib/opensolaris/uts/common/fs/dnlc.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/cddl/contrib/opensolaris/uts/common/fs/dnlc.c b/sys/cddl/contrib/opensolaris/uts/common/fs/dnlc.c index a62e542..1df75e9 100644 --- a/sys/cddl/contrib/opensolaris/uts/common/fs/dnlc.c +++ b/sys/cddl/contrib/opensolaris/uts/common/fs/dnlc.c @@ -839,5 +839,5 @@ dnlc_lowvnodes(void *arg __unused, int nvnodes) dnlc_reduce_cache((void *)(intptr_t)nvnodes); } -SYSINIT(dnlc, SI_SUB_DRIVERS, SI_ORDER_ANY, dnlc_init, NULL); -SYSUNINIT(dnlc, SI_SUB_DRIVERS, SI_ORDER_ANY, dnlc_fini, NULL); +SYSINIT(dnlc, SI_SUB_VFS, SI_ORDER_ANY, dnlc_init, NULL); +SYSUNINIT(dnlc, SI_SUB_VFS, SI_ORDER_ANY, dnlc_fini, NULL); diff --git a/sys/contrib/opensolaris/uts/common/fs/dnlc.c b/sys/contrib/opensolaris/uts/common/fs/dnlc.c index a62e542..1df75e9 100644 --- a/sys/contrib/opensolaris/uts/common/fs/dnlc.c +++ b/sys/contrib/opensolaris/uts/common/fs/dnlc.c @@ -839,5 +839,5 @@ dnlc_lowvnodes(void *arg __unused, int nvnodes) dnlc_reduce_cache((void *)(intptr_t)nvnodes); } -SYSINIT(dnlc, SI_SUB_DRIVERS, SI_ORDER_ANY, dnlc_init, NULL); -SYSUNINIT(dnlc, SI_SUB_DRIVERS, SI_ORDER_ANY, dnlc_fini, NULL); +SYSINIT(dnlc, SI_SUB_VFS, SI_ORDER_ANY, dnlc_init, NULL); +SYSUNINIT(dnlc, SI_SUB_VFS, SI_ORDER_ANY, dnlc_fini, NULL); |