]> git.karo-electronics.de Git - karo-tx-linux.git/commit
zsmalloc: remove unnecessary insertion/removal of zspage in compaction
authorMinchan Kim <minchan@kernel.org>
Tue, 7 Apr 2015 23:44:50 +0000 (09:44 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 7 Apr 2015 23:44:50 +0000 (09:44 +1000)
commit57d80af38af21669fb7a6df46049e69f3771c53c
treea0ff78cb2fcf52508cfd2aed0b7b8370250ac93a
parent78c19159d8e1db448d8c99d03cfb46980288e0ff
zsmalloc: remove unnecessary insertion/removal of zspage in compaction

In putback_zspage, we don't need to insert a zspage into list of zspage
in size_class again to just fix fullness group. We could do directly
without reinsertion so we could save some instuctions.

Reported-by: Heesub Shin <heesub.shin@samsung.com>
Signed-off-by: Minchan Kim <minchan@kernel.org>
Cc: Nitin Gupta <ngupta@vflare.org>
Cc: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Cc: Dan Streetman <ddstreet@ieee.org>
Cc: Seth Jennings <sjennings@variantweb.net>
Cc: Ganesh Mahendran <opensource.ganesh@gmail.com>
Cc: Luigi Semenzato <semenzato@google.com>
Cc: Gunho Lee <gunho.lee@lge.com>
Cc: Juneho Choi <juno.choi@lge.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/zsmalloc.c