mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/xiang/erofs.git
synced 2026-11-08 18:43:21 +01:00
Hopefully this isn't too late for 3.12. In commit7dc19d5aff(convert shrinkers to new count/scan API) the return value to PURGE_ALL_CACHES was dropped, causing -EPERM to always be returned. This patch re-adds the ret assignment, setting it to the the ashmem_shrink_count(), which is the lru_count. (Sorry this was missed in the review!) Fixes:7dc19d5aff("convert shrinkers to new count/scan API") Cc: Colin Cross <[email protected]> Cc: Android Kernel Team <[email protected]> Cc: Glauber Costa <[email protected]> Reported-by: YongQin Liu <[email protected]> Signed-off-by: John Stultz <[email protected]> Cc: stable <[email protected]> # 3.12 Acked-by: Dave Chinner <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>