[CRIU] [PATCH 2/2] restorer: Drop redundant VMA_AREA_REGULAR tests

Cyrill Gorcunov gorcunov at openvz.org
Sun Mar 29 12:17:09 PDT 2015


We have them in vma_entry_is_private() already.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 pie/restorer.c | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/pie/restorer.c b/pie/restorer.c
index c5e44a524c25..d64fbf09d1f2 100644
--- a/pie/restorer.c
+++ b/pie/restorer.c
@@ -799,9 +799,6 @@ long __export_restore_task(struct task_restore_args *args)
 	for (i = 0; i < args->nr_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))
 			continue;
 
@@ -820,9 +817,6 @@ long __export_restore_task(struct task_restore_args *args)
 	for (i = args->nr_vmas - 1; i >= 0; i--) {
 		vma_entry = args->tgt_vmas + i;
 
-		if (!vma_entry_is(vma_entry, VMA_AREA_REGULAR))
-			continue;
-
 		if (!vma_entry_is_private(vma_entry))
 			continue;
 
-- 
1.9.3



More information about the CRIU mailing list