diff options
author | Bryn M. Reeves <bmr@redhat.com> | 2016-12-13 18:14:13 +0000 |
---|---|---|
committer | Bryn M. Reeves <bmr@redhat.com> | 2016-12-13 20:25:47 +0000 |
commit | 930b0b4c9e4ca466d955f8729644ef26a939937c (patch) | |
tree | 50d3def25b15bf05f572908f62facf7c239c39f8 | |
parent | eb6557221715b30a374be46e4a52f79cd7bbed44 (diff) | |
download | lvm2-930b0b4c9e4ca466d955f8729644ef26a939937c.tar.gz |
libdm: fix start of file detection in _stats_map_extents()
-rw-r--r-- | libdm/libdm-stats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libdm/libdm-stats.c b/libdm/libdm-stats.c index d9f0427a0..471bd7b3c 100644 --- a/libdm/libdm-stats.c +++ b/libdm/libdm-stats.c @@ -4287,7 +4287,7 @@ static uint64_t _stats_map_extents(struct dm_pool *mem, * If the file only has a single extent, no boundary is ever * detected to trigger addition of the first extent. */ - if (fm_ext[i].fe_logical == 0) + if (fm_ext[i - 1].fe_logical == 0) _stats_add_extent(mem, fm_pending, nr_extents); fiemap->fm_start = (fm_ext[i - 1].fe_logical + |