The patch titled Subject: zsmalloc: don't test shrinker_enabled in zs_shrinker_count() has been added to the -mm tree. Its filename is zsmalloc-dont-test-shrinker_enabled-in-zs_shrinker_count.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/zsmalloc-dont-test-shrinker_enabled-in-zs_shrinker_count.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/zsmalloc-dont-test-shrinker_enabled-in-zs_shrinker_count.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Sergey Senozhatsky <sergey.senozhatsky.work@xxxxxxxxx> Subject: zsmalloc: don't test shrinker_enabled in zs_shrinker_count() We don't let user to disable shrinker in zsmalloc (once it's been enabled), so no need to check ->shrinker_enabled in zs_shrinker_count(), at the moment at least. Signed-off-by: Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx> Acked-by: Minchan Kim <minchan@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/zsmalloc.c | 3 --- 1 file changed, 3 deletions(-) diff -puN mm/zsmalloc.c~zsmalloc-dont-test-shrinker_enabled-in-zs_shrinker_count mm/zsmalloc.c --- a/mm/zsmalloc.c~zsmalloc-dont-test-shrinker_enabled-in-zs_shrinker_count +++ a/mm/zsmalloc.c @@ -1823,9 +1823,6 @@ static unsigned long zs_shrinker_count(s struct zs_pool *pool = container_of(shrinker, struct zs_pool, shrinker); - if (!pool->shrinker_enabled) - return 0; - for (i = zs_size_classes - 1; i >= 0; i--) { class = pool->size_class[i]; if (!class) _ Patches currently in -mm which might be from sergey.senozhatsky.work@xxxxxxxxx are zsmalloc-dont-test-shrinker_enabled-in-zs_shrinker_count.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html