summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomohiro Kusumi <[email protected]>2019-04-20 04:05:15 +0900
committerBrian Behlendorf <[email protected]>2019-04-19 12:05:15 -0700
commit34d343c2a8ff849c46001c2ee2f1081f489192ef (patch)
tree5e57b6ba366fb29ae529d084ae43cdf7c2e2c58d
parentf8b2ca6b1c0e6a2b1564323ab3e06a85ec668c2d (diff)
Drop unused ZNODE_STATS and ZNODE_STAT_ADD()
Unused since 5649246dd3("Remove znode move functionality"), and ZNODE_STAT_ADD() will never be needed. Reviewed-by: Richard Elling <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Tomohiro Kusumi <[email protected]> Closes #8636
-rw-r--r--module/zfs/zfs_znode.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/module/zfs/zfs_znode.c b/module/zfs/zfs_znode.c
index 761fbcb33..d998e42ab 100644
--- a/module/zfs/zfs_znode.c
+++ b/module/zfs/zfs_znode.c
@@ -67,20 +67,6 @@
#include "zfs_comutil.h"
/*
- * Define ZNODE_STATS to turn on statistic gathering. By default, it is only
- * turned on when DEBUG is also defined.
- */
-#ifdef DEBUG
-#define ZNODE_STATS
-#endif /* DEBUG */
-
-#ifdef ZNODE_STATS
-#define ZNODE_STAT_ADD(stat) ((stat)++)
-#else
-#define ZNODE_STAT_ADD(stat) /* nothing */
-#endif /* ZNODE_STATS */
-
-/*
* Functions needed for userland (ie: libzpool) are not put under
* #ifdef_KERNEL; the rest of the functions have dependencies
* (such as VFS logic) that will not compile easily in userland.