]> Git Repo - linux.git/commit
x86/mm/cpa: Split, rename and clean up try_preserve_large_page()
authorThomas Gleixner <[email protected]>
Mon, 17 Sep 2018 14:29:08 +0000 (16:29 +0200)
committerThomas Gleixner <[email protected]>
Thu, 27 Sep 2018 18:39:37 +0000 (20:39 +0200)
commit8679de0959e65ee7f78db6405a8d23e61665751d
treeb72da28fb72996cf0bcc51851078c3a1cb6e13a4
parent2a25dc7c79c92c6cba45c6218c49395173be80bf
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 <[email protected]>
Reviewed-by: Dave Hansen <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Bin Yang <[email protected]>
Cc: Mark Gross <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
arch/x86/mm/pageattr.c
This page took 0.050494 seconds and 4 git commands to generate.