Re: [PATCH v6 07/11] iomap: fix iomap_dio_zero() for fs bs > system page size

From: Pankaj Raghav (Samsung)
Date: Tue Jun 04 2024 - 05:44:14 EST


> > static int __init iomap_init(void)
> > {
> > + zero_fs_block = alloc_pages(GFP_KERNEL | __GFP_ZERO, ZERO_FSB_ORDER);
> > + if (!zero_fs_block)
> > + return -ENOMEM;
> > +
> > return bioset_init(&iomap_ioend_bioset, 4 * (PAGE_SIZE / SECTOR_SIZE),
> > offsetof(struct iomap_ioend, io_bio),
> > BIOSET_NEED_BVECS);
>
> just create an iomap_dio_init() function in iomap/direct-io.c
> and call that from here. Then everything can be private to
> iomap/direct-io.c...

Sounds good :)