diff options
author | Isaac Huang <[email protected]> | 2015-04-25 22:25:45 -0600 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2015-04-27 09:22:05 -0700 |
commit | 0336f3d001c76625281919bcf9e534d1976f3c36 (patch) | |
tree | 5c0907f1265f4510a0f5694e30352769fdee1f3b /module | |
parent | c5656c4cfc28ecf9daf0a8df527b1bf0900c1f80 (diff) |
Remove useless variable spa_active_count
This isn't required for the Linux port because the kernel tracks
if a module is busy. The prototype for spa_busy() is also removed
since its definition was already removed.
Signed-off-by: Isaac Huang <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #3262
Diffstat (limited to 'module')
-rw-r--r-- | module/zfs/spa_misc.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/module/zfs/spa_misc.c b/module/zfs/spa_misc.c index 7a96ea18b..33d2d20fd 100644 --- a/module/zfs/spa_misc.c +++ b/module/zfs/spa_misc.c @@ -227,7 +227,6 @@ static avl_tree_t spa_namespace_avl; kmutex_t spa_namespace_lock; static kcondvar_t spa_namespace_cv; -static int spa_active_count; int spa_max_replication_override = SPA_DVAS_PER_BP; static kmutex_t spa_spare_lock; @@ -560,10 +559,8 @@ spa_add(const char *name, nvlist_t *config, const char *altroot) /* * Set the alternate root, if there is one. */ - if (altroot) { + if (altroot) spa->spa_root = spa_strdup(altroot); - spa_active_count++; - } /* * Every pool starts with the default cachefile @@ -628,10 +625,8 @@ spa_remove(spa_t *spa) avl_remove(&spa_namespace_avl, spa); cv_broadcast(&spa_namespace_cv); - if (spa->spa_root) { + if (spa->spa_root) spa_strfree(spa->spa_root); - spa_active_count--; - } while ((dp = list_head(&spa->spa_config_list)) != NULL) { list_remove(&spa->spa_config_list, dp); |