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 <maminghui5@xiaomi.corp-partner.google.com>
This commit is contained in:
Marcus Ma
2025-03-17 11:28:22 +08:00
committed by Treehugger Robot
parent 6bd3e435f2
commit d3b0aaa092

View File

@@ -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.