Re: [RFC PATCH 2/2] erofs: directly traverse pages in z_erofs_readahead()
From: Matthew Wilcox
Date: Mon Jul 05 2021 - 16:15:51 EST
On Tue, Jul 06, 2021 at 02:32:53AM +0800, Gao Xiang wrote:
> In that way, pages can be accessed directly with xarray.
I didn't mean "open code readahead_page()". I meant "Wouldn't it be
great if z_erofs_do_read_page() used readahead_expand() in order to
allocate the extra pages in the extents that cover the start and end of
the requested chunk". That way the pages would already be in the page
cache for subsequent reads.