[CRIU] [PATCH 06/11] lazy-pages: rename first_pending_iov to pick_next_range
Mike Rapoport
rppt at linux.vnet.ibm.com
Sun Mar 25 16:27:26 MSK 2018
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 at linux.vnet.ibm.com>
---
criu/uffd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/criu/uffd.c b/criu/uffd.c
index c7f79b2..1233b3b 100644
--- a/criu/uffd.c
+++ b/criu/uffd.c
@@ -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;
--
2.7.4
More information about the CRIU
mailing list