From d3b0aaa092abb1bf18606aeb0306425aa5e7e446 Mon Sep 17 00:00:00 2001 From: Marcus Ma Date: Mon, 17 Mar 2025 11:28:22 +0800 Subject: [PATCH] ANDROID: Add EXPORT_SYMBOL_GPL for folio_mapcount We need to get the number of folio mappings through folio_mapcount. Later, pages with mapcount higher than a certain threshold will be skipped for reverse mapping to reduce the high load caused by reverse mapping during the recycling process. Bug: 404067677 Change-Id: I21dd847a07fb4e7bb616a3bc01b7d1cdf46e9b0b Signed-off-by: Marcus Ma --- mm/util.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/util.c b/mm/util.c index 36b78dac0706..98771d2bdc67 100644 --- a/mm/util.c +++ b/mm/util.c @@ -847,6 +847,7 @@ int folio_mapcount(struct folio *folio) ret -= nr; return ret; } +EXPORT_SYMBOL_GPL(folio_mapcount); /** * folio_copy - Copy the contents of one folio to another.