On Thu, May 23, 2024 at 09:54:00AM +0000, Johannes Thumshirn wrote: > On 23.05.24 03:42, Matthew Wilcox wrote: > > I think the right way to handle this is to call read_mapping_folio(). > > That will allocate a folio in the page cache for you (obeying the > > minimum folio size). Then you can examine the contents. It should > > actually remove code from zonefs. Don't forget to call folio_put() > > when you're done with it (either at unmount or at the end of mount if > > you copy what you need elsewhere). > > Hmm but read mapping folio needs an inode for the address_space. Or does > the block device inode work here? Sorry, yes, should have been explicit. Read it using the bdev's address_space.