Commit 976cb5f8 authored by Mike Rapoport's avatar Mike Rapoport Committed by Andrei Vagin

criu: mem: count all pages actually written to image as "pages_written"

Currently potentially lazy pages are not counted as written even if they
are dump into pages*img. Count these pages as "pages_written" when dump is
not going to skip writing lazy pages to disk.

travis-ci: success for criu: mem: count all pages actually written to image as "pages_written"
Signed-off-by: 's avatarMike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 2ce576e6
...@@ -175,7 +175,7 @@ static int generate_iovs(struct vma_area *vma, struct page_pipe *pp, u64 *map, u ...@@ -175,7 +175,7 @@ static int generate_iovs(struct vma_area *vma, struct page_pipe *pp, u64 *map, u
pages[1]++; pages[1]++;
} else { } else {
ret = page_pipe_add_page(pp, vaddr, ppb_flags); ret = page_pipe_add_page(pp, vaddr, ppb_flags);
if (ppb_flags & PPB_LAZY) if (ppb_flags & PPB_LAZY && opts.lazy_pages)
pages[2]++; pages[2]++;
else else
pages[3]++; pages[3]++;
......
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