Re: [PATCH v2] page cache: Store only head pages in i_pages

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

 



On Wed 13-02-19 12:17:15, Matthew Wilcox wrote:
> > > -		pages[ret] = page;
> > > +		pages[ret] = find_subpage(page, xas.xa_index);
> > >  		if (++ret == nr_pages) {
> > >  			*start = page->index + 1;
> > >  			goto out;
> > >  		}
> > 
> > So this subtly changes the behavior because now we will be returning in
> > '*start' a different index. So you should rather use 'pages[ret]->index'
> > instead.
> 
> You're right, I made a mistake there.  However, seeing this:
> https://lore.kernel.org/lkml/20190110030838.84446-1-yuzhao@xxxxxxxxxx/
> 
> makes me think that I should be using xa_index + 1 there.

Yeah, you're right. Thanks!

								Honza
-- 
Jan Kara <jack@xxxxxxxx>
SUSE Labs, CR



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux