mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: fix end-of-groups test in _stats_walk_end()
This commit is contained in:
parent
9c8c8fb63a
commit
c26cd48536
@ -1543,7 +1543,7 @@ static int _stats_walk_end(const struct dm_stats *dms, uint64_t *flags,
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (*flags & DM_STATS_WALK_GROUP) {
|
if (*flags & DM_STATS_WALK_GROUP) {
|
||||||
if (*cur_g < dms->max_region)
|
if (*cur_g <= dms->max_region)
|
||||||
goto out;
|
goto out;
|
||||||
*flags &= ~DM_STATS_WALK_GROUP;
|
*flags &= ~DM_STATS_WALK_GROUP;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user