zsmalloc: remove unnecessary insertion/removal of zspage in compaction
authorMinchan Kim <[email protected]>
Wed, 15 Apr 2015 23:16:18 +0000 (16:16 -0700)
committerLinus Torvalds <[email protected]>
Wed, 15 Apr 2015 23:35:22 +0000 (16:35 -0700)
commit839373e645d12613308d9148041c4bd967bce8d5
tree79a29675e15f8eb8bd4fcca5f035a96b2154e049
parent495819ead5ad02174208994ca610852a7791a2f2
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 <[email protected]>
Signed-off-by: Minchan Kim <[email protected]>
Cc: Nitin Gupta <[email protected]>
Cc: Sergey Senozhatsky <[email protected]>
Cc: Dan Streetman <[email protected]>
Cc: Seth Jennings <[email protected]>
Cc: Ganesh Mahendran <[email protected]>
Cc: Luigi Semenzato <[email protected]>
Cc: Gunho Lee <[email protected]>
Cc: Juneho Choi <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/zsmalloc.c