[PATCH 1/7] zram: drop stale comment in write_incompressible_page()
From: Sergey Senozhatsky
Date: Wed Nov 04 2026 - 23:48:28 EST
zram doesn't do fast/slow-path handle allocation anymore, so
the comment in write_incompressible_page() is stale. Drop it.
Signed-off-by: Sergey Senozhatsky <senozhatsky@xxxxxxxxxxxx>
---
drivers/block/zram/zram_drv.c | 5 -----
1 file changed, 5 deletions(-)
diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
index 632045b65bdb..380615b73446 100644
--- a/drivers/block/zram/zram_drv.c
+++ b/drivers/block/zram/zram_drv.c
@@ -2271,11 +2271,6 @@ static int write_incompressible_page(struct zram *zram, struct page *page,
unsigned long handle;
void *src;
- /*
- * This function is called from preemptible context so we don't need
- * to do optimistic and fallback to pessimistic handle allocation,
- * like we do for compressible pages.
- */
handle = zs_malloc(zram->mem_pool, PAGE_SIZE,
GFP_NOIO | __GFP_NOWARN |
__GFP_HIGHMEM | __GFP_MOVABLE, page_to_nid(page));
--
2.56.0.398.g882cbad275-goog