diff options
author | 2014-12-12 16:57:10 -0800 | |
---|---|---|
committer | 2014-12-13 12:42:50 -0800 | |
commit | 181366561ac1e1a7bc3b91dbe45e7614a2f758b9 (patch) | |
tree | 559d989501ca9e8735518a5ae6b7267ea24a5df3 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | mm/zsmalloc: avoid duplicate assignment of prev_class (diff) | |
download | linux-dev-181366561ac1e1a7bc3b91dbe45e7614a2f758b9.tar.xz linux-dev-181366561ac1e1a7bc3b91dbe45e7614a2f758b9.zip |
mm/zsmalloc: allocate exactly size of struct zs_pool
In zs_create_pool(), we allocate memory more then sizeof(struct zs_pool)
ovhd_size = roundup(sizeof(*pool), PAGE_SIZE);
This patch allocate memory of exactly needed size.
Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com>
Acked-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Dan Streetman <ddstreet@ieee.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions