mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 14:04:54 +02:00
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 <bing.han@transsion.com> Change-Id: Ia89b1728d540c5cc8995a939a918e12c23057266
This commit is contained in:
parent
06c2766cbc
commit
034877c195
|
|
@ -1488,6 +1488,7 @@ void swapcache_free_entries(swp_entry_t *entries, int n)
|
||||||
if (p)
|
if (p)
|
||||||
spin_unlock(&p->lock);
|
spin_unlock(&p->lock);
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(swapcache_free_entries);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* How many references to page are currently swapped out?
|
* How many references to page are currently swapped out?
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user