aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index 8cdd3e72ba55..5678e6c61ef2 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -479,6 +479,10 @@ static struct mm_struct *dup_mm(struct task_struct *tsk)
479 479
480 memcpy(mm, oldmm, sizeof(*mm)); 480 memcpy(mm, oldmm, sizeof(*mm));
481 481
482 /* Initializing for Swap token stuff */
483 mm->token_priority = 0;
484 mm->last_interval = 0;
485
482 if (!mm_init(mm)) 486 if (!mm_init(mm))
483 goto fail_nomem; 487 goto fail_nomem;
484 488
@@ -542,6 +546,10 @@ static int copy_mm(unsigned long clone_flags, struct task_struct * tsk)
542 goto fail_nomem; 546 goto fail_nomem;
543 547
544good_mm: 548good_mm:
549 /* Initializing for Swap token stuff */
550 mm->token_priority = 0;
551 mm->last_interval = 0;
552
545 tsk->mm = mm; 553 tsk->mm = mm;
546 tsk->active_mm = mm; 554 tsk->active_mm = mm;
547 return 0; 555 return 0;