From 71a3f9aaee93027d2a64f65d6eddcce13cd20b45 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Sun, 25 Mar 2018 16:27:27 +0300 Subject: [PATCH] lazy-pages: rename handle_remaining_pages to xfer_pages The intention is to use this function for transferring all the pages that didn't cause a #PF. Signed-off-by: Mike Rapoport Signed-off-by: Andrei Vagin --- criu/uffd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/criu/uffd.c b/criu/uffd.c index 1233b3bd1..8bbfb5c64 100644 --- a/criu/uffd.c +++ b/criu/uffd.c @@ -861,7 +861,7 @@ static struct lazy_iov *pick_next_range(struct lazy_pages_info *lpi) return list_first_entry(&lpi->iovs, struct lazy_iov, l); } -static int handle_remaining_pages(struct lazy_pages_info *lpi) +static int xfer_pages(struct lazy_pages_info *lpi) { struct lazy_iov *iov; int nr_pages, err; @@ -1121,7 +1121,7 @@ static int handle_requests(int epollfd, struct epoll_event *events, int nr_fds) remaining = true; if (!list_empty(&lpi->iovs)) { - ret = handle_remaining_pages(lpi); + ret = xfer_pages(lpi); if (ret < 0) goto out; break;