From d69a321e567bf57c08f243969031545866abaf9d Mon Sep 17 00:00:00 2001 From: Giuseppe Di Natale Date: Tue, 31 Jan 2017 14:36:35 -0800 Subject: OpenZFS 7545 - zdb should disable reference tracking Authored by: Matthew Ahrens Reviewed by: Dan Kimmel Reviewed by: Steve Gonczi Reviewed by: George Wilson Approved by: Robert Mustacchi Reviewed-by: Brian Behlendorf Ported-by: Giuseppe Di Natale Porting Notes: Moved reference_tracking_enable and reference_history outside of ZFS_DEBUG. OpenZFS-issue: https://www.illumos.org/issues/7545 OpenZFS-commit: https://github.com/openzfs/openzfs/commit/4dd77f9 Closes #5701 --- module/zfs/refcount.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'module/zfs') diff --git a/module/zfs/refcount.c b/module/zfs/refcount.c index 6f8f4db08..b33874714 100644 --- a/module/zfs/refcount.c +++ b/module/zfs/refcount.c @@ -26,8 +26,6 @@ #include #include -#ifdef ZFS_DEBUG - #ifdef _KERNEL int reference_tracking_enable = FALSE; /* runs out of memory too easily */ #else @@ -35,6 +33,7 @@ int reference_tracking_enable = TRUE; #endif int reference_history = 3; /* tunable */ +#ifdef ZFS_DEBUG static kmem_cache_t *reference_cache; static kmem_cache_t *reference_history_cache; -- cgit v1.2.3