diff options
Diffstat (limited to 'kernel/fork.c')
-rw-r--r-- | kernel/fork.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/kernel/fork.c b/kernel/fork.c index 47b4e4f379f9..5b13eea2e757 100644 --- a/kernel/fork.c +++ b/kernel/fork.c | |||
@@ -614,7 +614,6 @@ void mmput(struct mm_struct *mm) | |||
614 | list_del(&mm->mmlist); | 614 | list_del(&mm->mmlist); |
615 | spin_unlock(&mmlist_lock); | 615 | spin_unlock(&mmlist_lock); |
616 | } | 616 | } |
617 | put_swap_token(mm); | ||
618 | if (mm->binfmt) | 617 | if (mm->binfmt) |
619 | module_put(mm->binfmt->module); | 618 | module_put(mm->binfmt->module); |
620 | mmdrop(mm); | 619 | mmdrop(mm); |
@@ -831,10 +830,6 @@ struct mm_struct *dup_mm(struct task_struct *tsk) | |||
831 | memcpy(mm, oldmm, sizeof(*mm)); | 830 | memcpy(mm, oldmm, sizeof(*mm)); |
832 | mm_init_cpumask(mm); | 831 | mm_init_cpumask(mm); |
833 | 832 | ||
834 | /* Initializing for Swap token stuff */ | ||
835 | mm->token_priority = 0; | ||
836 | mm->last_interval = 0; | ||
837 | |||
838 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE | 833 | #ifdef CONFIG_TRANSPARENT_HUGEPAGE |
839 | mm->pmd_huge_pte = NULL; | 834 | mm->pmd_huge_pte = NULL; |
840 | #endif | 835 | #endif |
@@ -913,10 +908,6 @@ static int copy_mm(unsigned long clone_flags, struct task_struct *tsk) | |||
913 | goto fail_nomem; | 908 | goto fail_nomem; |
914 | 909 | ||
915 | good_mm: | 910 | good_mm: |
916 | /* Initializing for Swap token stuff */ | ||
917 | mm->token_priority = 0; | ||
918 | mm->last_interval = 0; | ||
919 | |||
920 | tsk->mm = mm; | 911 | tsk->mm = mm; |
921 | tsk->active_mm = mm; | 912 | tsk->active_mm = mm; |
922 | return 0; | 913 | return 0; |