From 034877c19535441fb26f9004c1d3e5820eb8d350 Mon Sep 17 00:00:00 2001 From: Bing Han Date: Fri, 10 Jun 2022 20:01:01 +0800 Subject: [PATCH] ANDROID: mm: export swapcache_free_entries Export swapcache_free_entries to be used in the alternative function android_vh_drain_slots_cache_cpu to swap entries in swap slot cache, it's usage is similar to the usage in drain_slots_cache_cpu. Bug: 234214858 Signed-off-by: Bing Han Change-Id: Ia89b1728d540c5cc8995a939a918e12c23057266 --- mm/swapfile.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/swapfile.c b/mm/swapfile.c index c06259a5b3bd..677f235806c2 100644 --- a/mm/swapfile.c +++ b/mm/swapfile.c @@ -1488,6 +1488,7 @@ void swapcache_free_entries(swp_entry_t *entries, int n) if (p) spin_unlock(&p->lock); } +EXPORT_SYMBOL_GPL(swapcache_free_entries); /* * How many references to page are currently swapped out?