aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorGanesh Mahendran <opensource.ganesh@gmail.com>2014-12-12 16:57:07 -0800
committerGreg Hackmann <ghackmann@google.com>2015-12-09 11:09:59 -0800
commit1432885609c50d067bbad8aa0f396784423073f6 (patch)
treec6a253dee8a90be5b0934335f846747cc79a5172 /include
parente393a2a7cc0d44b2ae7c4a7cd69009ad971d226c (diff)
UPSTREAM: mm/zsmalloc: avoid duplicate assignment of prev_class
(cherry-pick from commit df8b5bb998f10cfc040ad30300f9a9ea4592ff82) 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. [akpm@linux-foundation.org: remove now-unused ZS_SIZE_CLASSES] Signed-off-by: Ganesh Mahendran <opensource.ganesh@gmail.com> Cc: Minchan Kim <minchan@kernel.org> Cc: Nitin Gupta <ngupta@vflare.org> Reviewed-by: Dan Streetman <ddstreet@ieee.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Bug: 25951511 Change-Id: I07420457a78c10da2a7bf66c16d89f7d1998c2f7
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions