OSDN Git Service

x86/mm/cpa: Rework static_protections()
authorThomas Gleixner <tglx@linutronix.de>
Mon, 17 Sep 2018 14:29:09 +0000 (16:29 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 27 Sep 2018 18:39:37 +0000 (20:39 +0200)
commitafd7969a99e072e6aa0d88511176d4d2f3009fd9
tree05743b4811ab86261c0be544066a6026c39819f7
parent8679de0959e65ee7f78db6405a8d23e61665751d
x86/mm/cpa: Rework static_protections()

static_protections() is pretty unreadable. Split it up into separate checks
for each protection area.

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.913005317@linutronix.de
arch/x86/mm/pageattr.c