Skip to content

Commit e996365

Browse files
Peter Zijlstrahansendc
authored andcommitted
x86/mm: Rename __change_page_attr_set_clr(.checkalias)
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) <[email protected]> Link: https://lkml.kernel.org/r/20221110125544.661001508%40infradead.org
1 parent d597416 commit e996365

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

arch/x86/mm/pat/set_memory.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,7 +1641,7 @@ static int __change_page_attr(struct cpa_data *cpa, int primary)
16411641
return err;
16421642
}
16431643

1644-
static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias);
1644+
static int __change_page_attr_set_clr(struct cpa_data *cpa, int primary);
16451645

16461646
/*
16471647
* Check the directmap and "high kernel map" 'aliases'.
@@ -1718,7 +1718,7 @@ static int cpa_process_alias(struct cpa_data *cpa)
17181718
return 0;
17191719
}
17201720

1721-
static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias)
1721+
static int __change_page_attr_set_clr(struct cpa_data *cpa, int primary)
17221722
{
17231723
unsigned long numpages = cpa->numpages;
17241724
unsigned long rempages = numpages;
@@ -1742,13 +1742,13 @@ static int __change_page_attr_set_clr(struct cpa_data *cpa, int checkalias)
17421742

17431743
if (!debug_pagealloc_enabled())
17441744
spin_lock(&cpa_lock);
1745-
ret = __change_page_attr(cpa, checkalias);
1745+
ret = __change_page_attr(cpa, primary);
17461746
if (!debug_pagealloc_enabled())
17471747
spin_unlock(&cpa_lock);
17481748
if (ret)
17491749
goto out;
17501750

1751-
if (checkalias && !(cpa->flags & CPA_NO_CHECK_ALIAS)) {
1751+
if (primary && !(cpa->flags & CPA_NO_CHECK_ALIAS)) {
17521752
ret = cpa_process_alias(cpa);
17531753
if (ret)
17541754
goto out;

0 commit comments

Comments
 (0)