aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorRajman Mekaco <[email protected]>2012-05-29 15:06:21 -0700
committerLinus Torvalds <[email protected]>2012-05-29 16:22:19 -0700
commit841e31e5cc6219d62054788faa289b6ed682d068 (patch)
tree6c6bbcf2be5082c5bdc71bfccad4d57be0e99126 /tools/perf/scripts/python/bin
parent4d67d860531ad5378dedfad7661c540f3365013d (diff)
mm/mmap.c: find_vma(): remove unnecessary if(mm) check
The "if (mm)" check is not required in find_vma, as the kernel code calls find_vma only when it is absolutely sure that the mm_struct arg to it is non-NULL. Remove the if(mm) check and adding the a WARN_ONCE(!mm) for now. This will serve the purpose of mandating that the execution context(user-mode/kernel-mode) be known before find_vma is called. Also fixed 2 checkpatch.pl errors in the declaration of the rb_node and vma_tmp local variables. I was browsing through the internet and read a discussion at https://lkml.org/lkml/2012/3/27/342 which discusses removal of the validation check within find_vma. Since no-one responded, I decided to send this patch with Andrew's suggestions. [[email protected]: add remove-me comment] Signed-off-by: Rajman Mekaco <[email protected]> Cc: Kautuk Consul <[email protected]> Cc: Hugh Dickins <[email protected]> Cc: KAMEZAWA Hiroyuki <[email protected]> Acked-by: KOSAKI Motohiro <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions