Loading arch/x86/mm/pageattr.c +7 −8 Original line number Diff line number Diff line Loading @@ -575,14 +575,6 @@ static int __change_page_attr(struct cpa_data *cpa, int primary) address = cpa->vaddr[cpa->curpage]; else address = *cpa->vaddr; /* * If we're called with lazy mmu updates enabled, the * in-memory pte state may be stale. Flush pending updates to * bring them up to date. */ arch_flush_lazy_mmu_mode(); repeat: kpte = lookup_address(address, &level); if (!kpte) Loading Loading @@ -819,6 +811,13 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages, vm_unmap_aliases(); /* * If we're called with lazy mmu updates enabled, the * in-memory pte state may be stale. Flush pending updates to * bring them up to date. */ arch_flush_lazy_mmu_mode(); cpa.vaddr = addr; cpa.numpages = numpages; cpa.mask_set = mask_set; Loading Loading
arch/x86/mm/pageattr.c +7 −8 Original line number Diff line number Diff line Loading @@ -575,14 +575,6 @@ static int __change_page_attr(struct cpa_data *cpa, int primary) address = cpa->vaddr[cpa->curpage]; else address = *cpa->vaddr; /* * If we're called with lazy mmu updates enabled, the * in-memory pte state may be stale. Flush pending updates to * bring them up to date. */ arch_flush_lazy_mmu_mode(); repeat: kpte = lookup_address(address, &level); if (!kpte) Loading Loading @@ -819,6 +811,13 @@ static int change_page_attr_set_clr(unsigned long *addr, int numpages, vm_unmap_aliases(); /* * If we're called with lazy mmu updates enabled, the * in-memory pte state may be stale. Flush pending updates to * bring them up to date. */ arch_flush_lazy_mmu_mode(); cpa.vaddr = addr; cpa.numpages = numpages; cpa.mask_set = mask_set; Loading