diff options
author | 2018-09-17 16:29:08 +0200 | |
---|---|---|
committer | 2018-09-27 20:39:37 +0200 | |
commit | 8679de0959e65ee7f78db6405a8d23e61665751d (patch) | |
tree | b72da28fb72996cf0bcc51851078c3a1cb6e13a4 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | x86/mm/init32: Mark text and rodata RO in one go (diff) | |
download | linux-dev-8679de0959e65ee7f78db6405a8d23e61665751d.tar.xz linux-dev-8679de0959e65ee7f78db6405a8d23e61665751d.zip |
x86/mm/cpa: Split, rename and clean up try_preserve_large_page()
Avoid the extra variable and gotos by splitting the function into the
actual algorithm and a callable function which contains the lock
protection.
Rename it to should_split_large_page() while at it so the return values make
actually sense.
Clean up the code flow, comments and general whitespace damage while at it. No
functional change.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Dave Hansen <dave.hansen@intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Bin Yang <bin.yang@intel.com>
Cc: Mark Gross <mark.gross@intel.com>
Link: https://lkml.kernel.org/r/20180917143545.830507216@linutronix.de
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions