Skip to content

Commit 8f0b747

Browse files
MiaoheLinakpm00
authored andcommitted
mm/page_vma_mapped.c: use helper function huge_pte_lock
Use helper function huge_pte_lock() to lock the huge pte to simplify the code a bit. No functional change intended. Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Miaohe Lin <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 04ec006 commit 8f0b747

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

mm/page_vma_mapped.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,8 +174,7 @@ bool page_vma_mapped_walk(struct page_vma_mapped_walk *pvmw)
174174
if (!pvmw->pte)
175175
return false;
176176

177-
pvmw->ptl = huge_pte_lockptr(hstate, mm, pvmw->pte);
178-
spin_lock(pvmw->ptl);
177+
pvmw->ptl = huge_pte_lock(hstate, mm, pvmw->pte);
179178
if (!check_pte(pvmw))
180179
return not_found(pvmw);
181180
return true;

0 commit comments

Comments
 (0)