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:
Alexander Motin
2025-06-03 11:12:59 -04:00
committed by GitHub
parent 108562344c
commit 68817d28c5
5 changed files with 35 additions and 17 deletions
+2 -1
View File
@@ -181,7 +181,8 @@ typedef struct metaslab_class_allocator {
struct metaslab_class {
kmutex_t mc_lock;
spa_t *mc_spa;
const metaslab_ops_t *mc_ops;
const char *mc_name;
const metaslab_ops_t *mc_ops;
/*
* Track the number of metaslab groups that have been initialized