[CRIU] [PATCH v6 2/9] Revert "pp: Fix lost code from hole dumping helper"

Mike Rapoport rppt at linux.vnet.ibm.com
Thu Jul 14 05:49:29 PDT 2016


This reverts commit 9b12790716b2748f28140a778bdad77ec765c8ab.
---
 criu/page-xfer.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/criu/page-xfer.c b/criu/page-xfer.c
index afdd2b3..a3e3a7c 100644
--- a/criu/page-xfer.c
+++ b/criu/page-xfer.c
@@ -358,14 +358,13 @@ static int dump_hole(struct page_xfer *xfer, struct page_pipe_iovs *iov,
 	for (cur_hole = iov->busy_iov; cur_hole < iov->free_iov; cur_hole++) {
 		struct iovec hole = get_iov(iov->iovs, cur_hole, compat);
 
-		if (limit && hole.iov_base >= limit)
+		if (hole.iov_base >= limit)
 			break;
 		ret = page_xfer_dump_hole(xfer, &hole, off);
 		if (ret)
 			return ret;
 	}
 
-	iov->busy_iov = cur_hole;
 	return 0;
 }
 
-- 
1.9.1



More information about the CRIU mailing list