diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/fork.c | 8 | ||||
-rw-r--r-- | kernel/sysctl.c | 11 |
2 files changed, 8 insertions, 11 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 | ||
544 | good_mm: | 548 | good_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; |
diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 09e569f4792b..7abe9704e75a 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c | |||
@@ -977,17 +977,6 @@ static ctl_table vm_table[] = { | |||
977 | .extra1 = &zero, | 977 | .extra1 = &zero, |
978 | }, | 978 | }, |
979 | #endif | 979 | #endif |
980 | #ifdef CONFIG_SWAP | ||
981 | { | ||
982 | .ctl_name = VM_SWAP_TOKEN_TIMEOUT, | ||
983 | .procname = "swap_token_timeout", | ||
984 | .data = &swap_token_default_timeout, | ||
985 | .maxlen = sizeof(swap_token_default_timeout), | ||
986 | .mode = 0644, | ||
987 | .proc_handler = &proc_dointvec_jiffies, | ||
988 | .strategy = &sysctl_jiffies, | ||
989 | }, | ||
990 | #endif | ||
991 | #ifdef CONFIG_NUMA | 980 | #ifdef CONFIG_NUMA |
992 | { | 981 | { |
993 | .ctl_name = VM_ZONE_RECLAIM_MODE, | 982 | .ctl_name = VM_ZONE_RECLAIM_MODE, |