On Fri, May 10, 2024 at 11:37:22PM +0100, Matthew Wilcox wrote: > On Fri, May 10, 2024 at 12:29:06PM +0200, hare@xxxxxxxxxx wrote: > > From: Pankaj Raghav <p.raghav@xxxxxxxxxxx> > > > > Don't set the capacity to zero for when logical block size > PAGE_SIZE > > as the block device with iomap aops support allocating block cache with > > a minimum folio order. > > It feels like this should be something the block layer does rather than > something an individual block driver does. Is there similar code to > rip out of sd.c? Or other block drivers? Each block driver must be tested and set a max if its below what the page cache supports. Luis