[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <Y6Vh3iu1xD7jgF9/@infradead.org>
Date: Fri, 23 Dec 2022 00:07:58 -0800
From: Christoph Hellwig <hch@...radead.org>
To: Vishal Moola <vishal.moola@...il.com>
Cc: Matthew Wilcox <willy@...radead.org>, Chao Yu <chao@...nel.org>,
linux-kernel@...r.kernel.org,
linux-f2fs-devel@...ts.sourceforge.net, linux-mm@...ck.org,
fengnanchang@...il.com, linux-fsdevel@...r.kernel.org
Subject: Re: [RFC PATCH] f2fs: Convert f2fs_write_cache_pages() to use
filemap_get_folios_tag()
On Wed, Dec 21, 2022 at 09:17:30AM -0800, Vishal Moola wrote:
> > That said, folio_ref_inct() is very much MM-internal and filesystems
> > should be using folio_get(), so please make that modification in the
> > next revision, Vishal.
>
> Ok, I'll go through and fix all of those in the next version.
Btw, something a lot more productive in this area would be to figure out
how we could convert all these copy and paste versions of
write_cache_pages to use common code. This might need changes to the
common code, but the amount of duplicate and poorly maintained versions
of this loop is a bit alarming:
- btree_write_cache_pages
- extent_write_cache_pages
- f2fs_write_cache_pages
- gfs2_write_cache_jdata
Powered by blists - more mailing lists