Skip to content

Commit 1bd9124

Browse files
pundiramitAvenger-285714
authored andcommitted
ANDROID: staging: ashmem: Add shrinker name
Upstream mandates registering shrinkers with a name now. Fixes: e33c267 ("mm: shrinkers: provide shrinkers with names") Change-Id: I434150d024e976fc3facfc4b34a2199a9c2e5d08 Signed-off-by: Amit Pundir <amit.pundir@linaro.org> (cherry picked from commit 3c456dbd58ba3200643a770b6a57108f361bb877) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent 0e40852 commit 1bd9124

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/staging/android/ashmem.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,7 @@ static int __init ashmem_init(void)
951951
goto out_free2;
952952
}
953953

954-
ret = register_shrinker(&ashmem_shrinker);
954+
ret = register_shrinker(&ashmem_shrinker, "android-ashmem");
955955
if (ret) {
956956
pr_err("failed to register shrinker!\n");
957957
goto out_demisc;

0 commit comments

Comments
 (0)