2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

lazy-pages: rename first_pending_iov to pick_next_range

The function anyway pick the next page range to transfer it's just doing it
in very simple FIFO manner.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Mike Rapoport
2018-03-25 16:27:26 +03:00
committed by Andrei Vagin
parent cbee7c04e7
commit cc5aa76438

View File

@@ -856,7 +856,7 @@ static int uffd_handle_pages(struct lazy_pages_info *lpi, __u64 address, int nr,
return 0;
}
static struct lazy_iov *first_pending_iov(struct lazy_pages_info *lpi)
static struct lazy_iov *pick_next_range(struct lazy_pages_info *lpi)
{
return list_first_entry(&lpi->iovs, struct lazy_iov, l);
}
@@ -866,7 +866,7 @@ static int handle_remaining_pages(struct lazy_pages_info *lpi)
struct lazy_iov *iov;
int nr_pages, err;
iov = first_pending_iov(lpi);
iov = pick_next_range(lpi);
if (!iov)
return 0;