From ade29366cbef5f2afdd75cf00ee1ea2456c34b9e Mon Sep 17 00:00:00 2001 From: Paul Dagnelie Date: Mon, 30 Sep 2019 10:35:20 -0700 Subject: [PATCH] Reduce verify intensity on debug builds Signed-off-by: Paul Dagnelie --- module/zfs/btree.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/module/zfs/btree.c b/module/zfs/btree.c index f1ba25ffbd5a..8f3c3f3e7268 100644 --- a/module/zfs/btree.c +++ b/module/zfs/btree.c @@ -35,7 +35,7 @@ kmem_cache_t *zfs_btree_leaf_cache; * Intensity 3: Verify that the total number of elements in the tree matches the * sum of the number of elements in each node. Also verifies that each node's * count obeys the invariants (less than or equal to maximum value, greater than - * or equal to half the maximum). + * or equal to half the maximum minus one). * Intensity 4: Verify that each element compares less than the element * immediately after it and greater than the one immediately before it using the * comparator function. For core nodes, also checks that each element is greater @@ -53,11 +53,7 @@ kmem_cache_t *zfs_btree_leaf_cache; * (while the asymptotic complexity of the other steps is the same, the * importance of the constant factors cannot be denied). */ -#ifdef ZFS_DEBUG -int zfs_btree_verify_intensity = 5; -#else int zfs_btree_verify_intensity = 0; -#endif #ifdef _ILP32 #define BTREE_POISON 0xabadb10c