zsmalloc: use class->pages_per_zspage
authorMinchan Kim <minchan@kernel.org>
Tue, 8 Sep 2015 22:04:49 +0000 (15:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Sep 2015 22:35:28 +0000 (15:35 -0700)
commit6cbf16b3b66a61b9c6df8f2ed4ac346cb427f28a
tree51eb943fa8a3dbaa304226ae57c3275514d0ec06
parentad9d5e175a77a253f52a7259a7c918b8351d99f1
zsmalloc: use class->pages_per_zspage

There is no need to recalcurate pages_per_zspage in runtime.  Just use
class->pages_per_zspage to avoid unnecessary runtime overhead.

Signed-off-by: Minchan Kim <minchan@kernel.org>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c