From 7f4572a697fa838816437adc3e9645201dc9c817 Mon Sep 17 00:00:00 2001 From: daiyang5 Date: Mon, 7 Jul 2025 10:04:20 +0800 Subject: [PATCH] ANDROID: export folio_deactivate() for GKI purpose. Export the symbol folio_deactivate() to access LRU list in ko module for customizing activate and deactivate operations. This is a necessary component of our memory reclaim strategy. Bug: 429908837 Change-Id: Ied760489b2c1726dbfe52629f6d544aa607e5106 Signed-off-by: daiyang5 --- mm/swap.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/swap.c b/mm/swap.c index 174259a9a5f7..30b5eebce985 100644 --- a/mm/swap.c +++ b/mm/swap.c @@ -736,6 +736,7 @@ void folio_deactivate(struct folio *folio) local_unlock(&cpu_fbatches.lock); } } +EXPORT_SYMBOL_GPL(folio_deactivate); /** * folio_mark_lazyfree - make an anon folio lazyfree