equal
deleted
inserted
replaced
42 #include <sys/unique.h> |
42 #include <sys/unique.h> |
43 #include <sys/dsl_pool.h> |
43 #include <sys/dsl_pool.h> |
44 #include <sys/dsl_dir.h> |
44 #include <sys/dsl_dir.h> |
45 #include <sys/dsl_prop.h> |
45 #include <sys/dsl_prop.h> |
46 #include <sys/fs/zfs.h> |
46 #include <sys/fs/zfs.h> |
|
47 #include <sys/metaslab_impl.h> |
47 |
48 |
48 /* |
49 /* |
49 * SPA locking |
50 * SPA locking |
50 * |
51 * |
51 * There are four basic locks for managing spa_t structures: |
52 * There are four basic locks for managing spa_t structures: |
1121 avl_destroy(&spa_spare_avl); |
1122 avl_destroy(&spa_spare_avl); |
1122 |
1123 |
1123 cv_destroy(&spa_namespace_cv); |
1124 cv_destroy(&spa_namespace_cv); |
1124 mutex_destroy(&spa_namespace_lock); |
1125 mutex_destroy(&spa_namespace_lock); |
1125 } |
1126 } |
|
1127 |
|
1128 /* |
|
1129 * Return whether this pool has slogs. No locking needed. |
|
1130 * It's not a problem if the wrong answer is returned as it's only for |
|
1131 * performance and not correctness |
|
1132 */ |
|
1133 boolean_t |
|
1134 spa_has_slogs(spa_t *spa) |
|
1135 { |
|
1136 return (spa->spa_log_class->mc_rotor != NULL); |
|
1137 } |