[CRIU] [PATCH 2/7] lazy-pages: stop checking for zero pagemaps
Mike Rapoport
rppt at linux.vnet.ibm.com
Thu Dec 15 04:10:38 PST 2016
A page that explicitly mapped to zero pfn or a page that is not present
should be treated in the same way, therefore the zero pagemaps are not
required and will be removed by the following commits.
Signed-off-by: Mike Rapoport <rppt at linux.vnet.ibm.com>
---
criu/uffd.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/criu/uffd.c b/criu/uffd.c
index f78c512..c66a187 100644
--- a/criu/uffd.c
+++ b/criu/uffd.c
@@ -587,8 +587,8 @@ static int uffd_seek_or_zero_pages(struct lazy_pages_info *lpi, __u64 address,
lpi->pr.reset(&lpi->pr);
- ret = lpi->pr.seek_pagemap(&lpi->pr, address, false);
- if (!ret || pagemap_zero(lpi->pr.pe))
+ ret = lpi->pr.seek_pagemap(&lpi->pr, address, true);
+ if (!ret)
return uffd_zero(lpi, address, nr);
lpi->pr.skip_pages(&lpi->pr, address - lpi->pr.pe->vaddr);
--
1.9.1
More information about the CRIU
mailing list