zram: add incompressible flag to read_block_state()
mainline inclusion from mainline-v6.2-rc1 commit 77db7bb5 category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I7TWVA CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=77db7bb56bd711586243924a5582727f7a93fb7f ------------------------------------------- Add a new flag to zram block state that shows if the page is incompressible: that none of the algorithm (including secondary ones) could compress it. Link: https://lkml.kernel.org/r/20221109115047.2921851-14-senozhatsky@chromium.orgSuggested-by: NMinchan Kim <minchan@kernel.org> Signed-off-by: NSergey Senozhatsky <senozhatsky@chromium.org> Acked-by: NMinchan Kim <minchan@kernel.org> Cc: Alexey Romanov <avromanov@sberdevices.ru> Cc: Nhat Pham <nphamcs@gmail.com> Cc: Nitin Gupta <ngupta@vflare.org> Cc: Suleiman Souhlal <suleiman@google.com> Signed-off-by: NAndrew Morton <akpm@linux-foundation.org> Signed-off-by: NJinjiang Tu <tujinjiang@huawei.com>
Showing
想要评论请 注册 或 登录