Commit 73017e11 authored by Charan Teja Reddy's avatar Charan Teja Reddy Committed by Suren Baghdasaryan
Browse files

ANDROID: mm: add reclaim_shmem_address_space() for faster reclaims



Add the functionality that allow users of shmem to reclaim its pages
without going through the kswapd/direct reclaim path. An example usecase
is: Say that device allocates a larger amount of shmem pages and shares
it with hardware. To faster reclaims such pages, drivers can register
the shrinkers and call reclaim_shmem_address_space().

This commit is a squash of changes that contains all the fixes in the
reclaim_shmem_address_space() API.

Bug: 201263305
Change-Id: I03d2c3b9610612af977f89ddeabb63b8e9e50918
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
Signed-off-by: default avatarCharan Teja Kalla <quic_charante@quicinc.com>
parent 33ed2524
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment