Commit cc5aa764 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

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: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent cbee7c04
...@@ -856,7 +856,7 @@ static int uffd_handle_pages(struct lazy_pages_info *lpi, __u64 address, int nr, ...@@ -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) ...@@ -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;
......
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