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)
commitad9d5e175a77a253f52a7259a7c918b8351d99f1
treea09a440e04adb26ea738fabf369ec71b3590e49f
parent58f171174625150f3aaad0cddd3e365270b8e1b8
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