mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 13:58:34 +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:
committed by
Andrei Vagin
parent
0b29bbd369
commit
bc00f635f1
@@ -856,7 +856,7 @@ static int uffd_handle_pages(struct lazy_pages_info *lpi, __u64 address, int nr,
|
|||||||
return 0;
|
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);
|
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;
|
struct lazy_iov *iov;
|
||||||
int nr_pages, err;
|
int nr_pages, err;
|
||||||
|
|
||||||
iov = first_pending_iov(lpi);
|
iov = pick_next_range(lpi);
|
||||||
if (!iov)
|
if (!iov)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user