[PATCH v7 05/15] zram: remove stale WARN_ON() from zram_read_page()

From: Sergey Senozhatsky

Date: Sat Oct 24 2026 - 22:20:57 EST


The zram_read_page() WARN_ON() is not accurate anymore, because, in
theory, async read from bdev can return -EIO or -ENOMEM. We report
errors to upper layers via bi_status, so upper layers printk errors.

Signed-off-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>
---
drivers/block/zram/zram_drv.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index 2affac25db5d..beae16f22777 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -2204,10 +2204,6 @@ static int zram_read_page(struct zram *zram, struct page *page,
ret = read_from_bdev(zram, page, index, blk_idx, parent);
}

- /* Should NEVER happen. Return bio error if it does. */
- if (WARN_ON(ret < 0))
- pr_err("Decompression failed! err=%d, page=%lu\n", ret, index);
-
return ret;
}

--
2.56.0.257.gf7497c7d27-goog