commit | 6cbf16b3b66a61b9c6df8f2ed4ac346cb427f28a | [log] [tgz] |
---|---|---|
author | Minchan Kim <minchan@kernel.org> | Tue Sep 08 15:04:49 2015 -0700 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Tue Sep 08 15:35:28 2015 -0700 |
tree | 51eb943fa8a3dbaa304226ae57c3275514d0ec06 | |
parent | ad9d5e175a77a253f52a7259a7c918b8351d99f1 [diff] |
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>