[CRIU] [RFC PATCH 16/16] criu: lazy-pages: actually use nr_pages for get_remote_pages

Mike Rapoport rppt at linux.vnet.ibm.com
Tue Sep 27 06:42:17 PDT 2016


Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
 criu/uffd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/criu/uffd.c b/criu/uffd.c
index 0c42097..e593f9d 100644
--- a/criu/uffd.c
+++ b/criu/uffd.c
@@ -505,7 +505,7 @@ static int uffd_copy(struct lazy_pages_info *lpi, __u64 address, int nr_pages)
 	int rc;
 
 	if (opts.use_page_server)
-		rc = get_remote_pages(lpi->pid, address, 1, lpi->buf);
+		rc = get_remote_pages(lpi->pid, address, nr_pages, lpi->buf);
 	else
 		rc = get_pages(lpi, address, nr_pages);
 	if (rc <= 0)
-- 
1.9.1



More information about the CRIU mailing list