mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-02 07:15:31 +00:00
restorer: Drop redundant VMA_AREA_REGULAR tests
We have them in vma_entry_is_private() already. Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
9ce0254c04
commit
02edd8051e
@@ -799,9 +799,6 @@ long __export_restore_task(struct task_restore_args *args)
|
|||||||
for (i = 0; i < args->nr_vmas; i++) {
|
for (i = 0; i < args->nr_vmas; i++) {
|
||||||
vma_entry = args->tgt_vmas + i;
|
vma_entry = args->tgt_vmas + i;
|
||||||
|
|
||||||
if (!vma_entry_is(vma_entry, VMA_AREA_REGULAR))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!vma_entry_is_private(vma_entry))
|
if (!vma_entry_is_private(vma_entry))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
@@ -820,9 +817,6 @@ long __export_restore_task(struct task_restore_args *args)
|
|||||||
for (i = args->nr_vmas - 1; i >= 0; i--) {
|
for (i = args->nr_vmas - 1; i >= 0; i--) {
|
||||||
vma_entry = args->tgt_vmas + i;
|
vma_entry = args->tgt_vmas + i;
|
||||||
|
|
||||||
if (!vma_entry_is(vma_entry, VMA_AREA_REGULAR))
|
|
||||||
continue;
|
|
||||||
|
|
||||||
if (!vma_entry_is_private(vma_entry))
|
if (!vma_entry_is_private(vma_entry))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user