]> git.karo-electronics.de Git - karo-tx-linux.git/commit
zsmalloc: don't test shrinker_enabled in zs_shrinker_count()
authorSergey Senozhatsky <sergey.senozhatsky.work@gmail.com>
Wed, 21 Oct 2015 22:03:28 +0000 (09:03 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 21 Oct 2015 22:03:28 +0000 (09:03 +1100)
commit17027cb33361eeac9eb69ac834bb7de01ebb1b45
tree1ec4fb9968443d0106c17b87cb4a94bd8c6e70d9
parent740d33dba99987ee8c01707c14ccf68c1e99b51d
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@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zsmalloc.c