2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

deduplication: fix bug in auto-dedup when it is on page-server

No need to check opts.use_page_server, because in write_pagemap_loc
write is local anyway. it appeared that on page-server when saving
pages to images opts.use_page_server=true and no auto-dedup started,
so images were not null as expected.

Signed-off-by: Tikhomirov Pavel <snorcht@gmail.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Tikhomirov Pavel
2014-03-06 16:52:40 +04:00
committed by Pavel Emelyanov
parent 9db426a7cd
commit c3d71138ec

View File

@@ -460,7 +460,7 @@ static int write_pagemap_loc(struct page_xfer *xfer,
pe.vaddr = encode_pointer(iov->iov_base);
pe.nr_pages = iov->iov_len / PAGE_SIZE;
if (opts.auto_dedup && !opts.use_page_server && xfer->parent != NULL) {
if (opts.auto_dedup && xfer->parent != NULL) {
ret = dedup_one_iovec(xfer->parent, iov);
if (ret == -1) {
pr_perror("Auto-deduplication failed");