From d705b32c33cf635cc466f2d54be5a29804e83868 Mon Sep 17 00:00:00 2001 From: jhb Date: Wed, 1 Oct 2008 19:24:16 +0000 Subject: Remove the LOOKUP_SHARED kernel option. Instead, make vfs.lookup_shared a loader tunable (it was already a sysctl). --- sys/conf/options | 3 --- sys/kern/vfs_lookup.c | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'sys') diff --git a/sys/conf/options b/sys/conf/options index d3c93c4..b849a90 100644 --- a/sys/conf/options +++ b/sys/conf/options @@ -741,9 +741,6 @@ DCONS_POLL_HZ opt_dcons.h DCONS_FORCE_CONSOLE opt_dcons.h DCONS_FORCE_GDB opt_dcons.h -# VFS options -LOOKUP_SHARED opt_vfs.h - # HWPMC options HWPMC_HOOKS 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 #include @@ -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. -- cgit v1.1