aboutsummaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorTomohiro Kusumi <[email protected]>2018-05-01 11:15:54 -0700
committerBrian Behlendorf <[email protected]>2018-05-01 11:15:54 -0700
commitd6133fc500ea8b4fdc1a51944cb17ea5e70f3137 (patch)
tree2fefd59814620ed121957cc72b33d2bec8e87abe /module
parent85ce3f4fd114cf3c7a77feb07b397d43b90d11c7 (diff)
Silence compile-time warning on unused variable
ASSERT3U() could be NOP which then leads to having unused pointer *spa. metaslab.c: In function 'metaslab_condense': metaslab.c:2075:9: warning: unused variable 'spa' [-Wunused-variable] spa_t *spa = msp->ms_group->mg_vd->vdev_spa; Reviewed-by: Giuseppe Di Natale <[email protected]> Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: George Melikov <[email protected]> Signed-off-by: Tomohiro Kusumi <[email protected]> Closes #7489
Diffstat (limited to 'module')
-rw-r--r--module/zfs/metaslab.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/module/zfs/metaslab.c b/module/zfs/metaslab.c
index 1dbe1e98c..9f0065b53 100644
--- a/module/zfs/metaslab.c
+++ b/module/zfs/metaslab.c
@@ -2072,12 +2072,11 @@ metaslab_should_condense(metaslab_t *msp)
static void
metaslab_condense(metaslab_t *msp, uint64_t txg, dmu_tx_t *tx)
{
- spa_t *spa = msp->ms_group->mg_vd->vdev_spa;
range_tree_t *condense_tree;
space_map_t *sm = msp->ms_sm;
ASSERT(MUTEX_HELD(&msp->ms_lock));
- ASSERT3U(spa_sync_pass(spa), ==, 1);
+ ASSERT3U(spa_sync_pass(msp->ms_group->mg_vd->vdev_spa), ==, 1);
ASSERT(msp->ms_loaded);