Ganesh Mahendran
df8b5bb998
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.
[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>
2014-12-13 12:42:50 -08:00
..
2014-10-18 11:53:51 -07:00
2014-10-29 16:33:15 -07:00
2014-11-13 16:17:06 -08:00
2014-12-13 12:42:46 -08:00
2014-12-10 17:41:06 -08:00
2014-12-13 12:42:48 -08:00
2014-12-10 17:41:09 -08:00
2014-10-09 22:26:00 -04:00
2014-12-13 12:42:49 -08:00
2014-12-13 12:42:45 -08:00
2014-12-13 12:42:45 -08:00
2014-12-13 12:42:45 -08:00
2014-12-10 17:41:08 -08:00
2014-11-14 17:24:21 +11:00
2014-12-11 17:30:55 -08:00
2014-12-10 17:41:04 -08:00
2014-12-13 12:42:47 -08:00
2014-12-10 17:41:06 -08:00
2014-10-09 22:25:57 -04:00
2014-12-08 20:25:23 -05:00
2014-10-09 22:26:01 -04:00
2014-12-13 12:42:48 -08:00
2014-10-09 22:25:50 -04:00
2014-10-09 22:26:00 -04:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:46 -08:00
2014-12-13 12:42:49 -08:00
2014-12-10 17:41:05 -08:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:47 -08:00
2014-10-09 22:26:02 -04:00
2014-12-13 12:42:49 -08:00
2014-12-13 12:42:46 -08:00
2014-10-13 15:44:12 +02:00
2014-12-13 12:42:47 -08:00
2014-09-24 14:07:58 +02:00
2014-10-14 02:18:28 +02:00
2014-12-13 12:42:45 -08:00
2014-11-13 16:17:06 -08:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:49 -08:00
2014-12-13 12:42:49 -08:00
2014-12-10 17:41:05 -08:00
2014-12-13 12:42:48 -08:00
2014-12-10 17:41:05 -08:00
2014-12-13 12:42:48 -08:00
2014-12-10 17:41:08 -08:00
2014-10-09 22:25:58 -04:00
2014-09-02 14:46:05 -04:00
2014-09-02 14:46:02 -04:00
2014-10-29 10:34:34 -04:00
2014-08-29 16:28:15 -07:00
2014-12-13 12:42:46 -08:00
2014-10-24 00:14:37 +02:00
2014-12-10 17:41:07 -08:00
2014-12-13 12:42:49 -08:00
2014-12-10 17:41:07 -08:00
2014-10-09 22:25:50 -04:00
2014-12-13 12:42:49 -08:00
2014-12-10 17:41:09 -08:00
2014-12-10 17:41:09 -08:00
2014-10-09 22:25:59 -04:00
2014-12-10 17:41:09 -08:00
2014-11-07 08:29:25 +11:00
2014-10-09 22:25:50 -04:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:49 -08:00
2014-12-02 17:32:07 -08:00
2014-12-13 12:42:48 -08:00
2014-12-13 12:42:48 -08:00
2014-11-20 14:42:02 +01:00
2014-08-29 16:28:16 -07:00
2014-12-13 12:42:50 -08:00
2014-11-20 14:42:02 +01:00