Commit 71a3f9aa authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

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: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent cc5aa764
...@@ -861,7 +861,7 @@ static struct lazy_iov *pick_next_range(struct lazy_pages_info *lpi) ...@@ -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); 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; struct lazy_iov *iov;
int nr_pages, err; int nr_pages, err;
...@@ -1121,7 +1121,7 @@ static int handle_requests(int epollfd, struct epoll_event *events, int nr_fds) ...@@ -1121,7 +1121,7 @@ static int handle_requests(int epollfd, struct epoll_event *events, int nr_fds)
remaining = true; remaining = true;
if (!list_empty(&lpi->iovs)) { if (!list_empty(&lpi->iovs)) {
ret = handle_remaining_pages(lpi); ret = xfer_pages(lpi);
if (ret < 0) if (ret < 0)
goto out; goto out;
break; break;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment