From: Oleg Nesterov Date: Sun, 29 Jul 2012 18:22:12 +0000 (+0200) Subject: uprobes: Don't recheck vma/f_mapping in write_opcode() X-Git-Tag: v3.6-rc1~32^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f403072c6108e15f319a4a5036b650c77760522c;p=pandora-kernel.git uprobes: Don't recheck vma/f_mapping in write_opcode() write_opcode() rechecks valid_vma() and ->f_mapping, this is pointless. The caller, register_for_each_vma() or uprobe_mmap(), has already done these checks under mmap_sem. To clarify, uprobe_mmap() checks valid_vma() only, but we can rely on build_probe_list(vm_file->f_mapping->host). Signed-off-by: Oleg Nesterov Acked-by: Srikar Dronamraju Cc: Anton Arapov Cc: Srikar Dronamraju Link: http://lkml.kernel.org/r/20120729182212.GA20304@redhat.com Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed