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:
parent
a84d9cdb72
commit
8b384c52c0
@ -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");
|
||||
|
@ -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");
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user