aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/fork.c
diff options
context:
space:
mode:
authorOleg Nesterov <oleg@redhat.com>2012-08-08 11:17:46 -0400
committerOleg Nesterov <oleg@redhat.com>2012-08-28 12:21:19 -0400
commit61559a8165da2b6bab7621ac36379c6280efacb6 (patch)
tree22d885fda72ffadbaa735ceeeabd266177d66eab /kernel/fork.c
parentf8ac4ec9c064b330dcc49e03c450fe74298c4622 (diff)
uprobes: Fold uprobe_reset_state() into uprobe_dup_mmap()
Now that we have uprobe_dup_mmap() we can fold uprobe_reset_state() into the new hook and remove it. mmput()->uprobe_clear_state() can't be called before dup_mmap(). Signed-off-by: Oleg Nesterov <oleg@redhat.com> Acked-by: Srikar Dronamraju <srikar@linux.vnet.ibm.com>
Diffstat (limited to 'kernel/fork.c')
-rw-r--r--kernel/fork.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/kernel/fork.c b/kernel/fork.c
index cbb5f9fcd3e8..2343c9eaaaf4 100644
--- a/kernel/fork.c
+++ b/kernel/fork.c
@@ -837,8 +837,6 @@ struct mm_struct *dup_mm(struct task_struct *tsk)
837#ifdef CONFIG_TRANSPARENT_HUGEPAGE 837#ifdef CONFIG_TRANSPARENT_HUGEPAGE
838 mm->pmd_huge_pte = NULL; 838 mm->pmd_huge_pte = NULL;
839#endif 839#endif
840 uprobe_reset_state(mm);
841
842 if (!mm_init(mm, tsk)) 840 if (!mm_init(mm, tsk))
843 goto fail_nomem; 841 goto fail_nomem;
844 842