mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 06:45:35 +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:
committed by
Pavel Emelyanov
parent
9db426a7cd
commit
c3d71138ec
@@ -460,7 +460,7 @@ static int write_pagemap_loc(struct page_xfer *xfer,
|
|||||||
pe.vaddr = encode_pointer(iov->iov_base);
|
pe.vaddr = encode_pointer(iov->iov_base);
|
||||||
pe.nr_pages = iov->iov_len / PAGE_SIZE;
|
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);
|
ret = dedup_one_iovec(xfer->parent, iov);
|
||||||
if (ret == -1) {
|
if (ret == -1) {
|
||||||
pr_perror("Auto-deduplication failed");
|
pr_perror("Auto-deduplication failed");
|
||||||
|
Reference in New Issue
Block a user