mirror of
https://github.com/torvalds/linux.git
synced 2026-09-11 20:13:02 +02:00
mm: use proper PTE accessor in move_ptes()
Follow the pattern established by commitc33c794828("mm: ptep_get() conversion") and use the proper PTE accessor instead of a direct pointer dereference. Link: https://lore.kernel.org/20260720141633.501799-1-agordeev@linux.ibm.com Fixes:b36b701bbc("mm: expose abnormal new_pte during move_ptes") Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com> Acked-by: David Hildenbrand (Arm) <david@kernel.org> Cc: Ryan Roberts <ryan.roberts@arm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
6b0d108336
commit
62e39381b7
|
|
@ -264,7 +264,7 @@ static int move_ptes(struct pagetable_move_control *pmc,
|
|||
|
||||
for (; old_addr < old_end; old_ptep += nr_ptes, old_addr += nr_ptes * PAGE_SIZE,
|
||||
new_ptep += nr_ptes, new_addr += nr_ptes * PAGE_SIZE) {
|
||||
VM_WARN_ON_ONCE(!pte_none(*new_ptep));
|
||||
VM_WARN_ON_ONCE(!pte_none(ptep_get(new_ptep)));
|
||||
|
||||
nr_ptes = 1;
|
||||
max_nr_ptes = (old_end - old_addr) >> PAGE_SHIFT;
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user