zram: mark incompressible page as ZRAM_HUGE
authorMinchan Kim <[email protected]>
Fri, 8 Jun 2018 00:05:42 +0000 (17:05 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:34 +0000 (17:34 -0700)
commit89e85bce4b02edb7408aebf69d5d1a6692a05f4f
treeedcf57724445af23cf3d97d904903722359f7d78
parentc4d6c4cc7bfd5ecc18548420b7fb9440cf8416ae
zram: mark incompressible page as ZRAM_HUGE

Mark incompressible pages so that we could investigate who is the owner
of the incompressible pages once the page is swapped out via using
upcoming zram memory tracker feature.

With it, we could prevent such pages to be swapped out by using mlock.
Otherwise we might remove them.

This patch exposes new stat for huge pages via mm_stat.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Minchan Kim <[email protected]>
Reviewed-by: Sergey Senozhatsky <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Documentation/blockdev/zram.txt
drivers/block/zram/zram_drv.c
drivers/block/zram/zram_drv.h