Remove the LOOKUP_SHARED kernel option. Instead, make vfs.lookup_shared

a loader tunable (it was already a sysctl).
This commit is contained in:
John Baldwin 2008-10-01 19:24:16 +00:00
parent 1af1c6cd8a
commit d59701d07d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=183519
2 changed files with 1 additions and 8 deletions

View file

@ -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

View file

@ -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.