x86/mm: Untangle __change_page_attr_set_clr(.checkalias)
authorPeter Zijlstra <peterz@infradead.org>
Thu, 10 Nov 2022 12:33:54 +0000 (13:33 +0100)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 15 Dec 2022 18:37:28 +0000 (10:37 -0800)
commitef9ab81af6e1f7b7ff589aa1504434aa5915c1df
treeb67c752941bac75629411a251f992a3de6b945d0
parent5ceeee7571b7628f439ae0444ec41d132558f47e
x86/mm: Untangle __change_page_attr_set_clr(.checkalias)

The .checkalias argument to __change_page_attr_set_clr() is overloaded
and serves two different purposes:

 - it inhibits the call to cpa_process_alias() -- as suggested by the
   name; however,

 - it also serves as 'primary' indicator for __change_page_attr()
   ( which in turn also serves as a recursion terminator for
     cpa_process_alias() ).

Untangle these by extending the use of CPA_NO_CHECK_ALIAS to all
callsites that currently use .checkalias=0 for this purpose.

Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lkml.kernel.org/r/20221110125544.527267183%40infradead.org
arch/x86/mm/pat/set_memory.c