Files
mirror_zfs/module/zfs
Serapheim Dimitropoulos 65a91b166e metaslab_verify_weight_and_frag() shouldn't cause side-effects
`metaslab_verify_weight_and_frag()` a verification function and
by the end of it there shouldn't be any side-effects.

The function calls `metaslab_weight()` which in turn calls
`metaslab_set_fragmentation()`. The latter can dirty and otherwise
not dirty metaslab fro the next TXGand set `metaslab_condense_wanted`
if the spacemaps were just upgraded (meaning we just enabled the
SPACEMAP_HISTOGRAM feature through upgrade).

This patch adds a new flag as a parameter to `metaslab_weight()` and
`metaslab_set_fragmentation()` making the dirtying of the metaslab
optional.

Reviewed-by: Matt Ahrens <matt@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #9185 
Closes #9282
2019-09-05 09:57:55 -07:00
..
2019-09-02 17:56:41 -07:00
2019-07-26 10:54:14 -07:00
2019-07-26 10:54:14 -07:00
2019-06-19 09:48:12 -07:00
2019-06-19 09:48:12 -07:00
2019-09-02 17:56:41 -07:00
2019-06-19 14:54:02 -07:00
2019-06-19 09:48:12 -07:00
2019-05-07 15:18:44 -07:00
2019-09-02 17:56:41 -07:00
2019-06-19 09:48:12 -07:00
2019-09-02 17:56:41 -07:00
2019-06-19 09:48:12 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2017-10-11 16:54:48 -04:00
2019-05-02 16:46:04 -07:00
2015-01-16 14:41:26 -08:00
2019-07-16 10:11:49 -07:00
2019-09-02 17:56:41 -07:00
2019-06-19 09:48:12 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2018-03-15 10:53:58 -07:00
2010-08-31 13:41:58 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-07-16 10:11:49 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-06-20 18:29:02 -07:00
2019-07-16 10:11:49 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-06-20 18:29:02 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-07-16 10:11:49 -07:00
2019-06-20 18:29:02 -07:00
2019-08-16 09:08:21 -06:00
2019-09-02 17:56:41 -07:00
2019-06-12 13:13:09 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2018-02-13 14:54:54 -08:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2019-09-02 17:56:41 -07:00
2018-02-09 10:08:05 -08:00
2019-09-02 17:56:41 -07:00
2018-05-29 16:00:33 -07:00
2019-07-26 10:54:14 -07:00
2019-09-02 17:56:41 -07:00