uprobes: Fold uprobe_reset_state() into uprobe_dup_mmap()
authorOleg Nesterov <oleg@redhat.com>
Wed, 8 Aug 2012 15:17:46 +0000 (17:17 +0200)
committerOleg Nesterov <oleg@redhat.com>
Tue, 28 Aug 2012 16:21:19 +0000 (18:21 +0200)
commit61559a8165da2b6bab7621ac36379c6280efacb6
tree22d885fda72ffadbaa735ceeeabd266177d66eab
parentf8ac4ec9c064b330dcc49e03c450fe74298c4622
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>
include/linux/uprobes.h
kernel/events/uprobes.c
kernel/fork.c