git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add zio_ddt_free()+ddt_phys_decref() error handling
[zfs.git]
/
module
/
zfs
/
metaslab.c
diff --git
a/module/zfs/metaslab.c
b/module/zfs/metaslab.c
index
d199921
..
03d5a1d
100644
(file)
--- a/
module/zfs/metaslab.c
+++ b/
module/zfs/metaslab.c
@@
-58,7
+58,7
@@
int zfs_mg_alloc_failures;
/*
* Metaslab debugging: when set, keeps all space maps in core to verify frees.
*/
/*
* Metaslab debugging: when set, keeps all space maps in core to verify frees.
*/
-
static
int metaslab_debug = 0;
+int metaslab_debug = 0;
/*
* Minimum size which forces the dynamic allocator to change
/*
* Minimum size which forces the dynamic allocator to change
@@
-1746,3
+1746,8
@@
void metaslab_fastwrite_unmark(spa_t *spa, const blkptr_t *bp)
spa_config_exit(spa, SCL_VDEV, FTAG);
}
spa_config_exit(spa, SCL_VDEV, FTAG);
}
+
+#if defined(_KERNEL) && defined(HAVE_SPL)
+module_param(metaslab_debug, int, 0644);
+MODULE_PARM_DESC(metaslab_debug, "keep space maps in core to verify frees");
+#endif /* _KERNEL && HAVE_SPL */