mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: restore missing braces in _stats_walk_end_areas
Jumping to the end of the region table must only happen if there are no more present, non-skipped regions, and no group walk is configured to begin.
This commit is contained in:
parent
69c721dd68
commit
5d3b136d38
@ -1479,11 +1479,12 @@ static void _stats_walk_end_areas(const struct dm_stats *dms, uint64_t *flags,
|
|||||||
*cur_a = DM_STATS_WALK_REGION;
|
*cur_a = DM_STATS_WALK_REGION;
|
||||||
*cur_r = DM_STATS_REGION_NOT_PRESENT;
|
*cur_r = DM_STATS_REGION_NOT_PRESENT;
|
||||||
_stats_walk_next_present(dms, flags, cur_r, cur_a, cur_g);
|
_stats_walk_next_present(dms, flags, cur_r, cur_a, cur_g);
|
||||||
if (!_stats_walk_any_unskipped(dms, flags, cur_r, cur_a))
|
if (!_stats_walk_any_unskipped(dms, flags, cur_r, cur_a)) {
|
||||||
/* no more regions */
|
/* no more regions */
|
||||||
*flags &= ~DM_STATS_WALK_REGION;
|
*flags &= ~DM_STATS_WALK_REGION;
|
||||||
if (!(*flags & DM_STATS_WALK_GROUP))
|
if (!(*flags & DM_STATS_WALK_GROUP))
|
||||||
*cur_r = dms->max_region;
|
*cur_r = dms->max_region;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (*flags & DM_STATS_WALK_REGION)
|
if (*flags & DM_STATS_WALK_REGION)
|
||||||
|
Loading…
Reference in New Issue
Block a user