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

dedup, uffd: remove -1 handling for seep_pagemap_page return value

The return value of seep_pagemap_page can be either 1 (page found) or 0 (no
page found). There's no point in checking its return value for -1.

Signed-off-by: Mike Rapoport <rppt@linux.vnet.ibm.com>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Mike Rapoport
2016-11-20 11:50:01 +02:00
committed by Pavel Emelyanov
parent a1601d9a7d
commit 7d929d2d73

View File

@@ -97,10 +97,8 @@ int dedup_one_iovec(struct page_read *pr, struct iovec *iov)
struct page_read * prp;
ret = pr->seek_page(pr, off);
if (ret == -1)
return -1;
if (ret == 0) {
pr_warn("Missing %lx in parent pagemap\n", off);
if (off < pr->cvaddr && pr->cvaddr < iov_end)
off = pr->cvaddr;
else