From ac6089ee8dce83bd61d90344bf67aeef8f319f41 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Wed, 29 Mar 2017 20:02:26 +0100 Subject: [PATCH] libdm: use DM_STATS_GROUP_* constants in dm_stats_create_regions_from_fd --- libdm/libdm-stats.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index 290097f94..b553da5f5 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -4777,7 +4777,8 @@ uint64_t *dm_stats_create_regions_from_fd(struct dm_stats *dms, int fd, } if (!(regions = _stats_map_file_regions(dms, fd, bounds, precise, - -1, &count, ®roup))) + DM_STATS_GROUP_NOT_PRESENT, + &count, ®roup))) return NULL; if (!group)