2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 06:15:24 +00:00

page-read: Don't try to dedup from img cache/proxy

It's simply impossible (yet), so emit a warning.

Acked-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
Pavel Emelyanov
2017-07-06 12:38:13 +03:00
committed by Andrei Vagin
parent 4996c2b352
commit c1d90f46a2

View File

@@ -421,11 +421,8 @@ static int maybe_read_page_img_cache(struct page_read *pr, unsigned long vaddr,
break;
}
if (opts.auto_dedup) {
ret = punch_hole(pr, pr->pi_off, len, false);
if (ret == -1)
return -1;
}
if (opts.auto_dedup)
pr_warn_once("Can't dedup from image cache\n");
if (ret == 0 && pr->io_complete)
ret = pr->io_complete(pr, vaddr, nr);