mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-24 03:08:51 +03:00
Include class name into struct metaslab_class
With increasing number of metaslab classes it can be helpful for debugging to know what we are looking at. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Rob Norris <rob.norris@klarasystems.com> Signed-off-by: Alexander Motin <mav@FreeBSD.org> Sponsored by: iXsystems, Inc. Closes #17409
This commit is contained in:
+9
-5
@@ -1687,11 +1687,15 @@ spa_activate(spa_t *spa, spa_mode_t mode)
|
||||
spa->spa_mode = mode;
|
||||
spa->spa_read_spacemaps = spa_mode_readable_spacemaps;
|
||||
|
||||
spa->spa_normal_class = metaslab_class_create(spa, msp, B_FALSE);
|
||||
spa->spa_log_class = metaslab_class_create(spa, msp, B_TRUE);
|
||||
spa->spa_embedded_log_class = metaslab_class_create(spa, msp, B_TRUE);
|
||||
spa->spa_special_class = metaslab_class_create(spa, msp, B_FALSE);
|
||||
spa->spa_dedup_class = metaslab_class_create(spa, msp, B_FALSE);
|
||||
spa->spa_normal_class = metaslab_class_create(spa, "normal",
|
||||
msp, B_FALSE);
|
||||
spa->spa_log_class = metaslab_class_create(spa, "log", msp, B_TRUE);
|
||||
spa->spa_embedded_log_class = metaslab_class_create(spa,
|
||||
"embedded_log", msp, B_TRUE);
|
||||
spa->spa_special_class = metaslab_class_create(spa, "special",
|
||||
msp, B_FALSE);
|
||||
spa->spa_dedup_class = metaslab_class_create(spa, "dedup",
|
||||
msp, B_FALSE);
|
||||
|
||||
/* Try to create a covering process */
|
||||
mutex_enter(&spa->spa_proc_lock);
|
||||
|
||||
Reference in New Issue
Block a user