]> granicus.if.org Git - zfs/commit
OpenZFS 7613 - ms_freetree[4] is only used in syncing context
authorTim Chase <tim@chase2k.com>
Thu, 26 Jan 2017 23:27:19 +0000 (17:27 -0600)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Jan 2017 23:27:19 +0000 (15:27 -0800)
commit258553d3d79252030421b93d23cbce4d84a42dbb
tree590e6b2e0cd55881bca333cca25b13450e653bc6
parent9c9531cb6f085174e90d1262aba177ffb8b88753
OpenZFS 7613 - ms_freetree[4] is only used in syncing context

metaslab_t:ms_freetree[TXG_SIZE] is only used in syncing context. We
should replace it with two trees: the freeing tree (ranges that we are
freeing this syncing txg) and the freed tree (ranges which have been
freed this txg).

Authored by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: George Wilson <george.wilson@delphix.com>
Reviewed by: Alex Reece <alex@delphix.com>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Ported-by: Tim Chase <tim@chase2k.com>
OpenZFS-issue: https://www.illumos.org/issues/7613
OpenZFS-commit: https://github.com/openzfs/openzfs/commit/a8698da2
Closes #5598
include/sys/metaslab_impl.h
module/zfs/metaslab.c