Re: [PATCH] zram: fix partial I/O config check
From: Jianyue Wu
Date: Sun May 31 2026 - 20:25:50 EST
On Mon, Jun 1, 2026 at 5:38 AM Barry Song <baohua@xxxxxxxxxx> wrote:
> > diff --git a/drivers/block/zram/zram_drv.c b/drivers/block/zram/zram_drv.c
> > index 6e1330ce4bc1..72f89fd5572e 100644
> > --- a/drivers/block/zram/zram_drv.c
> > +++ b/drivers/block/zram/zram_drv.c
> > @@ -1510,7 +1510,7 @@ static int read_from_bdev(struct zram *zram, struct page *page, u32 index,
> > {
> > atomic64_inc(&zram->stats.bd_reads);
> > if (!parent) {
> > - if (WARN_ON_ONCE(!IS_ENABLED(ZRAM_PARTIAL_IO)))
> > + if (WARN_ON_ONCE(!IS_ENABLED(CONFIG_ZRAM_PARTIAL_IO)))
>
> However, I don't see ZRAM_PARTIAL_IO defined as a Kconfig option.
You are right. ZRAM_PARTIAL_IO is a local source-level define, not a
Kconfig symbol.
Please drop this patch.
Sorry for the noise.
Thanks,
Jianyue