[CRIU] [PATCH] cr-restore: remove the duplicate round_up for restore_thread_vma_len

Huang Qiang h.huangqiang at huawei.com
Sun Oct 28 22:40:49 EDT 2012


With some historical changes, the second page-aligned for
restore_thread_vma_len is reduplicate. So remove it.

Signed-off-by: Huang Qiang <h.huangqiang at huawei.com>
---
 cr-restore.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index a4a3242..89413ce 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -1361,8 +1361,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core, struct list_head *tgt_v
 			current->nr_threads,
 			KBYTES(restore_thread_vma_len));

-	restore_thread_vma_len = round_up(restore_thread_vma_len, PAGE_SIZE);
-
 	exec_mem_hint = restorer_get_vma_hint(pid, tgt_vmas, &self_vma_list,
 					      restorer_len +
 					      restore_task_vma_len +
-- 
1.7.1



More information about the CRIU mailing list