diff mbox series

[RFC,04/18] mm: convert to use ptep_clear() in pte_clear_not_present_full()

Message ID 20220429133552.33768-5-zhengqi.arch@bytedance.com (mailing list archive)
State New
Headers show
Series Try to free user PTE page table pages | expand

Commit Message

Qi Zheng April 29, 2022, 1:35 p.m. UTC
After commit 08d5b29eac7d ("mm: ptep_clear() page table helper"),
the ptep_clear() can be used to track the clearing of PTE page
table entries, but pte_clear_not_present_full() is not covered,
so also convert it to use ptep_clear(), we will need this call
in subsequent patches.

Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
---
 include/linux/pgtable.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/include/linux/pgtable.h b/include/linux/pgtable.h
index f4f4077b97aa..bed9a559d45b 100644
--- a/include/linux/pgtable.h
+++ b/include/linux/pgtable.h
@@ -423,7 +423,7 @@  static inline void pte_clear_not_present_full(struct mm_struct *mm,
 					      pte_t *ptep,
 					      int full)
 {
-	pte_clear(mm, address, ptep);
+	ptep_clear(mm, address, ptep);
 }
 #endif