aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
diff options
context:
space:
mode:
authorMuchun Song <[email protected]>2021-09-07 19:55:55 -0700
committerLinus Torvalds <[email protected]>2021-09-08 11:50:23 -0700
commitfe3df441ef885a75a3eff5e151ead1a92266d222 (patch)
tree9e1d1e5c4b1851cb9c825adef186380161b7638a /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py
parent5ef5f810199f421cb6455aa018fb8f21151b4a16 (diff)
mm: remove redundant compound_head() calling
There is a READ_ONCE() in the macro of compound_head(), which will prevent compiler from optimizing the code when there are more than once calling of it in a function. Remove the redundant calling of compound_head() from page_to_index() and page_add_file_rmap() for better code generation. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Muchun Song <[email protected]> Reviewed-by: David Howells <[email protected]> Cc: Matthew Wilcox (Oracle) <[email protected]> Cc: William Kucharski <[email protected]> Cc: Kirill A. Shutemov <[email protected]> Cc: Johannes Weiner <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions