x86/mm: Rename __change_page_attr_set_clr(.checkalias)
authorPeter Zijlstra <peterz@infradead.org>
Thu, 10 Nov 2022 12:34:00 +0000 (13:34 +0100)
committerDave Hansen <dave.hansen@linux.intel.com>
Thu, 15 Dec 2022 18:37:28 +0000 (10:37 -0800)
Now that the checkalias functionality is taken by CPA_NO_CHECK_ALIAS
rename the argument to better match is remaining purpose: primary,
matching __change_page_attr().

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

index beef77417115441b00ef493179de8682b8e9e84c..220361ceb997714bde35176e4bb4ff8fa83c9a99 100644 (file)
@@ -1641,7 +1641,7 @@ repeat:
        return err;
 }
 
-static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias);
+static int __change_page_attr_set_clr(struct cpa_data *cpa, int primary);
 
 /*
  * Check the directmap and "high kernel map" 'aliases'.
@@ -1718,7 +1718,7 @@ static int cpa_process_alias(struct cpa_data *cpa)
        return 0;
 }
 
-static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias)
+static int __change_page_attr_set_clr(struct cpa_data *cpa, int primary)
 {
        unsigned long numpages = cpa->numpages;
        unsigned long rempages = numpages;
@@ -1742,13 +1742,13 @@ static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias)
 
                if (!debug_pagealloc_enabled())
                        spin_lock(&cpa_lock);
-               ret = __change_page_attr(cpa, checkalias);
+               ret = __change_page_attr(cpa, primary);
                if (!debug_pagealloc_enabled())
                        spin_unlock(&cpa_lock);
                if (ret)
                        goto out;
 
-               if (checkalias && !(cpa->flags & CPA_NO_CHECK_ALIAS)) {
+               if (primary && !(cpa->flags & CPA_NO_CHECK_ALIAS)) {
                        ret = cpa_process_alias(cpa);
                        if (ret)
                                goto out;