Commit daeabfe7 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().

The implementation of this function is mostly borrowed from
reclaim_address_space() implemented for per process reclaim[1].

[1] https://lore.kernel.org/patchwork/cover/378056/



Bug: 187798288
Change-Id: I03d2c3b9610612af977f89ddeabb63b8e9e50918
Signed-off-by: default avatarCharan Teja Reddy <charante@codeaurora.org>
parent 4c3dddf4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment