summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorColin Cross <ccross@android.com>2014-02-17 13:58:38 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-18 11:05:08 -0800
commitb9daf0b60b8a6a5151fca0e8cbb2dab763a3e92a (patch)
treec17f16819109566bd0e5a76bc6c8ab7347e39a57 /include/linux
parent2803ac7bf20129365ff7b774adf63e0fd35c4221 (diff)
staging: ion: Move shrinker out of heaps
Every heap that uses deferred frees is going to need a shrinker to shrink the freelist under memory pressure. Rather than requiring each heap to implement a shrinker, automatically register a shrinker if the deferred free flag is set. The system heap also needs to shrink its page pools, so add a shrink function to the heap ops that will be called after shrinking the freelists. Cc: Colin Cross <ccross@android.com> Cc: Android Kernel Team <kernel-team@android.com> Signed-off-by: Colin Cross <ccross@android.com> [jstultz: Resolved big conflicts with the shrinker api change. Also minor commit subject tweak.] Signed-off-by: John Stultz <john.stultz@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions