From f18e354aa953a1c05c3ebf5394de56eae6778fa3 Mon Sep 17 00:00:00 2001 From: yipeng xiang Date: Thu, 26 Jun 2025 11:19:45 +0800 Subject: [PATCH] ANDROID: mm: export vm_normal_folio_pmd to allow vendors to implement simplified smaps The current process smaps operation is time-consuming. Exporting the vm_normal_folio_pmd function enables vendors to provide a more efficient and simplified version of smaps. Bug: 427633539 Change-Id: I7710f5d1656a9f7a4ae883aefc93135c93e637b5 Signed-off-by: yipeng xiang --- mm/memory.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/memory.c b/mm/memory.c index 5f584ca47550..caf01a420197 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -719,6 +719,7 @@ struct folio *vm_normal_folio_pmd(struct vm_area_struct *vma, return page_folio(page); return NULL; } +EXPORT_SYMBOL_GPL(vm_normal_folio_pmd); #endif static void restore_exclusive_pte(struct vm_area_struct *vma,