[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240201044246.GA14117@lst.de>
Date: Thu, 1 Feb 2024 05:42:46 +0100
From: Christoph Hellwig <hch@....de>
To: Matthew Wilcox <willy@...radead.org>
Cc: Christoph Hellwig <hch@....de>, linux-fsdevel@...r.kernel.org,
linux-ext4@...r.kernel.org
Subject: Re: [PATCH 1/3] fs: Introduce buffered_write_operations
On Thu, Feb 01, 2024 at 04:36:09AM +0000, Matthew Wilcox wrote:
> +static struct folio *iomap_write_begin(struct iomap_iter *iter, loff_t pos,
> + size_t len)
>
> with corresponding changes. Again, ends up looking slightly cleaner.
iomap also really needs some tweaks to the naming in the area as a
__foo function calling foo as the default is horrible. I'll take a
look at your patches and can add that on top.
> f2fs also doesn't seem terribly objectional; passing rpages between
> begin & end.
>
> ocfs2 is passing a ocfs2_write_ctxt between the two.
Well, it might be the intended purpose, but as-is it is horribly
inefficient - they need to do a dynamic allocation for every
page they iterate over. So all of them are candidates for an
iterator model that does this allocation once per write.
But maybe this isn't the time to deal with that and we should just leave
it in place.
Powered by blists - more mailing lists