On Tue, Jul 20, 2021 at 12:29:23PM +0100, Matthew Wilcox wrote: > Probably even better ... > > struct inode *inode = folio->mapping->host; > unsigned int nr_blocks = i_blocks_per_folio(inode, folio); Fine with me.
On Tue, Jul 20, 2021 at 12:29:23PM +0100, Matthew Wilcox wrote: > Probably even better ... > > struct inode *inode = folio->mapping->host; > unsigned int nr_blocks = i_blocks_per_folio(inode, folio); Fine with me.