zsmalloc: keep max_object in size_class
authorMinchan Kim <minchan@kernel.org>
Tue, 26 Jul 2016 22:23:11 +0000 (15:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 26 Jul 2016 23:19:19 +0000 (16:19 -0700)
commit1fc6e27d7b8613afe6e5c1b8cdf94339a1bce640
tree452e7eac7baca0961ada0cb078ced79683e0fd7c
parentb1123ea6d3b3da25af5c8a9d843bd07ab63213f4
zsmalloc: keep max_object in size_class

Every zspage in a size_class has same number of max objects so we could
move it to a size_class.

Link: http://lkml.kernel.org/r/1464736881-24886-5-git-send-email-minchan@kernel.org
Signed-off-by: Minchan Kim <minchan@kernel.org>
Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c