]> git.proxmox.com Git - mirror_zfs.git/commitdiff
Drop unused ZNODE_STATS and ZNODE_STAT_ADD()
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 19 Apr 2019 19:05:15 +0000 (04:05 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 19 Apr 2019 19:05:15 +0000 (12:05 -0700)
Unused since 5649246dd3("Remove znode move functionality"),
and ZNODE_STAT_ADD() will never be needed.

Reviewed-by: Richard Elling <Richard.Elling@RichardElling.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #8636

module/zfs/zfs_znode.c

index 761fbcb33764301f028b0b851fc2559442236271..d998e42ab0ba51ae140a0416b76ad0bb8af8e622 100644 (file)
 #include "zfs_prop.h"
 #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