diff options
author | jhb <jhb@FreeBSD.org> | 2008-10-01 19:24:16 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2008-10-01 19:24:16 +0000 |
commit | d705b32c33cf635cc466f2d54be5a29804e83868 (patch) | |
tree | d99af3c1108768e059934fc06e142f019870fdfe /sys/kern/vfs_lookup.c | |
parent | ee566dffaadbc88fa12b821e2f47296daf979809 (diff) | |
download | FreeBSD-src-d705b32c33cf635cc466f2d54be5a29804e83868.zip FreeBSD-src-d705b32c33cf635cc466f2d54be5a29804e83868.tar.gz |
Remove the LOOKUP_SHARED kernel option. Instead, make vfs.lookup_shared
a loader tunable (it was already a sysctl).
Diffstat (limited to 'sys/kern/vfs_lookup.c')
-rw-r--r-- | sys/kern/vfs_lookup.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sys/kern/vfs_lookup.c b/sys/kern/vfs_lookup.c index 8adb68e..da60a6e 100644 --- a/sys/kern/vfs_lookup.c +++ b/sys/kern/vfs_lookup.c @@ -39,7 +39,6 @@ __FBSDID("$FreeBSD$"); #include "opt_ktrace.h" #include "opt_mac.h" -#include "opt_vfs.h" #include <sys/param.h> #include <sys/systm.h> @@ -89,13 +88,10 @@ nameiinit(void *dummy __unused) } SYSINIT(vfs, SI_SUB_VFS, SI_ORDER_SECOND, nameiinit, NULL); -#ifdef LOOKUP_SHARED -static int lookup_shared = 1; -#else static int lookup_shared = 0; -#endif SYSCTL_INT(_vfs, OID_AUTO, lookup_shared, CTLFLAG_RW, &lookup_shared, 0, "Enables/Disables shared locks for path name translation"); +TUNABLE_INT("vfs.lookup_shared", &lookup_shared); /* * Convert a pathname into a pointer to a locked vnode. |