On Sun, Nov 17, 2024 at 10:29:50PM -0800, Christoph Hellwig wrote: > On Fri, Nov 15, 2024 at 03:01:54PM -0500, Brian Foster wrote: > > In preparation for special handling of subranges, lift the zeroed > > mapping logic from the iterator into the caller. Since this puts the > > pagecache dirty check and flushing in the same place, streamline the > > comments a bit as well. > > > > Signed-off-by: Brian Foster <bfoster@xxxxxxxxxx> > > Reviewed-by: Darrick J. Wong <djwong@xxxxxxxxxx> > > I don't want to block this improvement on stylistic things, but > I still don't like moving more code than the function invocation into > the iter body. I hope you're okay with me undoing that sooner or later. > > I actually think it's easier for you to just fix it up according to your needs rather than spin around on the list on it, since I'm not totally clear on what the goal is here anyways. Not sure if you saw my comment here [1], but my goal is to eventually remove this code anyways in favor of something that supports more of a sparse folio iteration. Whether it gets removed first or reworked in the meantime as part of broader cleanups isn't such a big deal. I just want to point that out so it's clear it's not worth trying too hard to beautify it. Brian [1] https://lore.kernel.org/linux-fsdevel/ZzdgWkt1DRCTWfCv@bfoster/