From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Biggers Date: Fri, 20 Mar 2020 10:37:34 -0700 Subject: [Cluster-devel] [PATCH v9 20/25] ext4: Convert from readpages to readahead In-Reply-To: <20200320142231.2402-21-willy@infradead.org> References: <20200320142231.2402-1-willy@infradead.org> <20200320142231.2402-21-willy@infradead.org> Message-ID: <20200320173734.GD851@sol.localdomain> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit On Fri, Mar 20, 2020 at 07:22:26AM -0700, Matthew Wilcox wrote: > From: "Matthew Wilcox (Oracle)" > > Use the new readahead operation in ext4 > > Signed-off-by: Matthew Wilcox (Oracle) > Reviewed-by: William Kucharski > --- > fs/ext4/ext4.h | 3 +-- > fs/ext4/inode.c | 21 +++++++++------------ > fs/ext4/readpage.c | 22 ++++++++-------------- > 3 files changed, 18 insertions(+), 28 deletions(-) > Reviewed-by: Eric Biggers > + if (rac) { > + page = readahead_page(rac); > prefetchw(&page->flags); > - list_del(&page->lru); > - if (add_to_page_cache_lru(page, mapping, page->index, > - readahead_gfp_mask(mapping))) > - goto next_page; > } Maybe the prefetchw(&page->flags) should be included in readahead_page()? Most of the callers do it. - Eric