From 76833246453c1f3cbf481325b4ac0058356dbacf Mon Sep 17 00:00:00 2001 From: Haakan T Johansson Date: Fri, 30 Sep 2016 18:47:58 +0200 Subject: [PATCH] Also include blocks with level > 0 i metadata category (from #5182). --- module/zfs/metaslab.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/module/zfs/metaslab.c b/module/zfs/metaslab.c index ce97d6278688..9d52f3799211 100644 --- a/module/zfs/metaslab.c +++ b/module/zfs/metaslab.c @@ -3221,6 +3221,10 @@ metaslab_alloc(spa_t *spa, metaslab_class_t *mc, uint64_t psize, blkptr_t *bp, alloc_class = METASLAB_ROTOR_ALLOC_CLASS_DATA; if (DMU_OT_IS_METADATA(BP_GET_TYPE(bp))) alloc_class = METASLAB_ROTOR_ALLOC_CLASS_METADATA; + /* Also include these blocks in metadata (from #5182). */ + if (BP_GET_LEVEL(bp) > 0) + alloc_class = METASLAB_ROTOR_ALLOC_CLASS_METADATA; + for (d = 0; d < ndvas; d++) { error = metaslab_alloc_dva(spa, mc, psize, dva, d, hintdva,