ANDROID: zram: set comp_len to PAGE_SIZE when page is huge
authorPeter Kalauskas <peskal@google.com>
Thu, 8 Nov 2018 19:03:13 +0000 (11:03 -0800)
committerivanmeler <i_ivan@windowslive.com>
Wed, 13 Apr 2022 21:13:28 +0000 (21:13 +0000)
commit3de693f97e0c023461ba9b04c2965ab277e1e8f5
tree383f61ca739a339723781661f4c6dfe58c70ed4c
parent99b5dbf4487276fcfa77e16e73ac35bdc32ccabc
ANDROID: zram: set comp_len to PAGE_SIZE when page is huge

This bug was introduced when two patches were applied out of order.

* zram: drop max_zpage_size and use zs_huge_class_size()
* zram: mark incompressible page as ZRAM_HUGE

Signed-off-by: Peter Kalauskas <peskal@google.com>
Bug: 119260394
Change-Id: I437d35c8d23c15237ad9c2d5bd7f99d7bff42872
drivers/block/zram/zram_drv.c