MFp4: Now that ZFS can use FreeBSD's namecache, turn it off by default and

turn off DNLC, but don't remove DNLC yet just in case.
This commit is contained in:
Pawel Jakub Dawidek 2007-04-24 16:59:20 +00:00
parent a84d9cdb72
commit 8b384c52c0
3 changed files with 11 additions and 0 deletions

View File

@ -203,7 +203,11 @@ struct nc_stats ncs = {
{ "pick_last", KSTAT_DATA_UINT64 },
};
#ifdef FREEBSD_NAMECACHE
static int doingcache = 0;
#else
static int doingcache = 1;
#endif
TUNABLE_INT("vfs.zfs.dnlc.enable", &doingcache);
SYSCTL_INT(_vfs_zfs_dnlc, OID_AUTO, enable, CTLFLAG_RDTUN, &doingcache, 0,
"Enable/disable name cache");

View File

@ -203,7 +203,11 @@ struct nc_stats ncs = {
{ "pick_last", KSTAT_DATA_UINT64 },
};
#ifdef FREEBSD_NAMECACHE
static int doingcache = 0;
#else
static int doingcache = 1;
#endif
TUNABLE_INT("vfs.zfs.dnlc.enable", &doingcache);
SYSCTL_INT(_vfs_zfs_dnlc, OID_AUTO, enable, CTLFLAG_RDTUN, &doingcache, 0,
"Enable/disable name cache");

View File

@ -61,6 +61,9 @@ SRCS+= vdev_geom.c
# Use UMA for ZIO allocation. This is not stable.
#CFLAGS+=-DZIO_USE_UMA
# Use FreeBSD's namecache.
CFLAGS+=-DFREEBSD_NAMECACHE
CWARNFLAGS=-Wall
CWARNFLAGS+=-Wno-unknown-pragmas
CWARNFLAGS+=-Wno-missing-braces