]> git.baikalelectronics.ru Git - kernel.git/commit
zsmalloc: consider ZS_ALMOST_FULL as migrate source
authorMinchan Kim <minchan.kim@lge.com>
Tue, 8 Sep 2015 22:04:47 +0000 (15:04 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 8 Sep 2015 22:35:28 +0000 (15:35 -0700)
commitfe9e5706a099f21d91ae1e45f4074a82a64500b5
treea09a440e04adb26ea738fabf369ec71b3590e49f
parent37e2c5d881225b26e4973d80db4c0f520d76bd16
zsmalloc: consider ZS_ALMOST_FULL as migrate source

There is no reason to prevent select ZS_ALMOST_FULL as migration source
if we cannot find source from ZS_ALMOST_EMPTY.

With this patch, zs_can_compact will return more exact result.

Signed-off-by: Minchan Kim <minchan.kim@lge.com>
Acked-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/zsmalloc.c