From 949ed5babab53bdde799b8ece3922047054f4beb 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 a04841dc9291..2646e93c9004 100644 --- a/mm/memory.c +++ b/mm/memory.c @@ -713,6 +713,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,