Skip to content

Commit

Permalink
Also include blocks with level > 0 i metadata category (from openzfs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
inkdot7 committed Sep 30, 2016
1 parent c4dc192 commit 5c57d09
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions module/zfs/metaslab.c
Expand Up @@ -2984,6 +2984,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,
Expand Down

0 comments on commit 5c57d09

Please sign in to comment.