mirror of
git://sourceware.org/git/lvm2.git
synced 2024-12-21 13:34:40 +03:00
libdm: make _find_extent() nr_extents argument uint64_t
This commit is contained in:
parent
5e74e43896
commit
722542fabb
@ -4472,7 +4472,7 @@ bad:
|
|||||||
#define MATCH_EXTENT(e, s, l) \
|
#define MATCH_EXTENT(e, s, l) \
|
||||||
(((e).start == (s)) && ((e).len == (l)))
|
(((e).start == (s)) && ((e).len == (l)))
|
||||||
|
|
||||||
static struct _extent *_find_extent(size_t nr_extents, struct _extent *extents,
|
static struct _extent *_find_extent(uint64_t nr_extents, struct _extent *extents,
|
||||||
uint64_t start, uint64_t len)
|
uint64_t start, uint64_t len)
|
||||||
{
|
{
|
||||||
size_t i;
|
size_t i;
|
||||||
@ -4685,9 +4685,10 @@ static uint64_t *_stats_map_file_regions(struct dm_stats *dms, int fd,
|
|||||||
*/
|
*/
|
||||||
for (i = 0; i < *count; i++) {
|
for (i = 0; i < *count; i++) {
|
||||||
if (update) {
|
if (update) {
|
||||||
if ((old_ext = _find_extent(nr_kept, old_extents,
|
if ((old_ext = _find_extent((uint64_t) nr_kept,
|
||||||
extents[i].start,
|
old_extents,
|
||||||
extents[i].len))) {
|
extents[i].start,
|
||||||
|
extents[i].len))) {
|
||||||
regions[i] = old_ext->id;
|
regions[i] = old_ext->id;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user