powerpc/mm: Add PG_dcache_clean to indicate dcache clean state
This just add a better name for PG_arch_1. No functional change in this patch. Signed-off-by: Aneesh Kumar K.V <aneesh.kumar@linux.ibm.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://lore.kernel.org/r/20210203045812.234439-2-aneesh.kumar@linux.ibm.com
This commit is contained in:
committed by
Michael Ellerman
parent
c7ba2d6363
commit
ec94b9b23d
@ -1144,10 +1144,10 @@ unsigned int hash_page_do_lazy_icache(unsigned int pp, pte_t pte, int trap)
|
||||
page = pte_page(pte);
|
||||
|
||||
/* page is dirty */
|
||||
if (!test_bit(PG_arch_1, &page->flags) && !PageReserved(page)) {
|
||||
if (!test_bit(PG_dcache_clean, &page->flags) && !PageReserved(page)) {
|
||||
if (trap == 0x400) {
|
||||
flush_dcache_icache_page(page);
|
||||
set_bit(PG_arch_1, &page->flags);
|
||||
set_bit(PG_dcache_clean, &page->flags);
|
||||
} else
|
||||
pp |= HPTE_R_N;
|
||||
}
|
||||
|
Reference in New Issue
Block a user