Re: [PATCH 5/6] zram: factor out ZRAM_HUGE write
From: Sergey Senozhatsky
Date: Wed Dec 11 2024 - 05:06:48 EST
[..]On (24/12/10 19:53), Sergey Senozhatsky wrote:
> - GFP_NOIO | __GFP_HIGHMEM |
> - __GFP_MOVABLE);
> + GFP_NOIO | __GFP_HIGHMEM | __GFP_MOVABLE);
> if (IS_ERR_VALUE(handle))
> return PTR_ERR((void *)handle);
>
> - if (comp_len != PAGE_SIZE) {
> - last_comp_len = comp_len;
> - goto compress_again;
> - }
I deleted too much, we need `last_comp_len = comp_len`. This is why
I think zram_write_page() is too complex now. (I'm still very very
unsre about last_comp_len patch.)
Andrew, please drop this whole series. I'll resend the combined
series (including zram writeback cond_resched() patch).