diff options
author | Ganesh Mahendran <[email protected]> | 2014-12-12 16:57:07 -0800 |
---|---|---|
committer | Linus Torvalds <[email protected]> | 2014-12-13 12:42:50 -0800 |
commit | df8b5bb998f10cfc040ad30300f9a9ea4592ff82 (patch) | |
tree | 43d3c41069a79d68b507701aef4e9ffbb68c6a76 /tools/perf/scripts/python/event_analyzing_sample.py | |
parent | d49b1c254c997195872a9e8913660a788298921e (diff) |
mm/zsmalloc: avoid duplicate assignment of prev_class
In zs_create_pool(), prev_class is assigned (ZS_SIZE_CLASSES - 1) times.
And the prev_class only references to the previous size_class. So we do
not need unnecessary assignement.
This patch assigns *prev_class* when a new size_class structure is
allocated and uses prev_class to check whether the first class has been
allocated.
[[email protected]: remove now-unused ZS_SIZE_CLASSES]
Signed-off-by: Ganesh Mahendran <[email protected]>
Cc: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Reviewed-by: Dan Streetman <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions