Re: [PATCH 1/2] zram: introduce bio batching support for faster writeback
From: Sergey Senozhatsky
Date: Thu Nov 13 2025 - 02:16:34 EST
On (25/11/13 14:59), Sergey Senozhatsky wrote:
[..]
> @@ -775,67 +980,41 @@ static int zram_writeback_slots(struct zram *zram, struct zram_pp_ctl *ctl)
> */
> if (!zram_test_flag(zram, index, ZRAM_PP_SLOT))
> goto next;
> - if (zram_read_from_zspool(zram, page, index))
> + if (zram_read_from_zspool(zram, req->page, index))
> goto next;
> zram_slot_unlock(zram, index);
>
> - bio_init(&bio, zram->bdev, &bio_vec, 1,
> + req->blk_idx = blk_idx;
> + req->pps = pps;
This should move ownership of pps from pps_ctl to req. Will fix in the next
iteration (apparently compile-testing is not the same as testing).