Re: [PATCH v2 4/8] fs/mpage: use blocks_per_folio instead of blocks_per_page

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 21, 2025 at 08:25:11PM +0000, Matthew Wilcox wrote:
> On Fri, Feb 21, 2025 at 10:58:58AM -0800, Luis Chamberlain wrote:
> > @@ -385,7 +388,7 @@ int mpage_read_folio(struct folio *folio, get_block_t get_block)
> >  {
> >  	struct mpage_readpage_args args = {
> >  		.folio = folio,
> > -		.nr_pages = 1,
> > +		.nr_pages = mapping_min_folio_nrpages(folio->mapping),
> 
> 		.nr_pages = folio_nr_pages(folio);
> 
> since the folio is not necessarily the minimum size.

Will roll this in for tests before a new v3.

 Luis




[Index of Archives]     [XFS Filesystem Development (older mail)]     [Linux Filesystem Development]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux RAID]     [Linux SCSI]


  Powered by Linux