]> granicus.if.org Git - zfs/commit
Simplify log vdev removal code
authorSerapheim Dimitropoulos <serapheimd@gmail.com>
Thu, 31 Jan 2019 17:17:52 +0000 (09:17 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 31 Jan 2019 17:17:52 +0000 (09:17 -0800)
commit6c926f426a26ffb6d7d8e563e33fc176164175cb
tree1f44965641a93e5587bfd5dfafd1e8802cc83584
parent7558997d2f808368867ca7e5234e5793446e8f3f
Simplify log vdev removal code

Get rid of the majority metaslab metadata when removing log vdevs
in spa_vdev_remove_log() with a call to metaslab_fini() instead
of duplicating a lot of that in vdev_remove_empty_log().

Reviewed-by: Matt Ahrens <mahrens@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Serapheim Dimitropoulos <serapheim@delphix.com>
Closes #8347
module/zfs/vdev.c
module/zfs/vdev_removal.c