ANDROID: mm: allow fast reclaim of shmem pages
Certain usecases that uses shmem pages requires the inactive pages to be reclaimed as soon as possible to reduce system memory pressure. Provide an option to move these pages to tail of inactive list for faster reclaim. Bug: 187798288 Change-Id: Ic5142b714d99a487aadbc2866be448e772f39b8a Signed-off-by: Vinayak Menon <vinmenon@codeaurora.org>
This commit is contained in:

committed by
Suren Baghdasaryan

parent
13af062abf
commit
9975da5f43
@@ -4284,3 +4284,9 @@ struct page *shmem_read_mapping_page_gfp(struct address_space *mapping,
|
||||
#endif
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(shmem_read_mapping_page_gfp);
|
||||
|
||||
void shmem_mark_page_lazyfree(struct page *page)
|
||||
{
|
||||
mark_page_lazyfree_movetail(page);
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(shmem_mark_page_lazyfree);
|
||||
|
Reference in New Issue
Block a user