[CRIU] [RFC PATCH 06/16] criu: lazy_pages: remove pages list updates from handle_regular_pages

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


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

diff --git a/criu/uffd.c b/criu/uffd.c
index e8b84cd..7f17d64 100644
--- a/criu/uffd.c
+++ b/criu/uffd.c
@@ -663,7 +663,6 @@ static int handle_regular_pages(struct lazy_pages_info *lpi, void *dest,
 				__u64 address)
 {
 	int rc;
-	struct uffd_pages_struct *uffd_pages;
 
 	rc = uffd_handle_page(lpi, address, dest);
 	if (rc < 0) {
@@ -671,15 +670,6 @@ static int handle_regular_pages(struct lazy_pages_info *lpi, void *dest,
 		return -1;
 	}
 
-	/*
-	 * Mark this page as having been already transferred, so
-	 * that it has not to be copied again later.
-	 */
-	list_for_each_entry(uffd_pages, &lpi->pages, list) {
-		if (uffd_pages->addr == address)
-			uffd_pages->flags |= UFFD_FLAG_SENT;
-	}
-
 	rc = update_lazy_iovecs(lpi, address, PAGE_SIZE);
 	if (rc < 0)
 		return -1;
-- 
1.9.1



More information about the CRIU mailing list