Re: [PATCH 5/6] zram: factor out ZRAM_HUGE write

From: Sergey Senozhatsky
Date: Tue Dec 10 2024 - 06:32:08 EST


On (24/12/10 19:53), Sergey Senozhatsky wrote:
> @@ -1673,13 +1723,16 @@ static int zram_write_page(struct zram *zram, struct page *page, u32 index)
> return ret;
> }
>
> - if (comp_len >= huge_class_size)
> - comp_len = PAGE_SIZE;
> -
> if (last_comp_len && (last_comp_len != comp_len)) {
> zs_free(zram->mem_pool, handle);
> handle = -ENOMEM;
> }

Andrew, JFI, this requires [1] fixup to be applied.

[1] https://lore.kernel.org/mm-commits/20241210093835.GN16709@xxxxxxxxxx/