On Wed, Nov 22, 2023 at 01:29:46PM +0100, Jan Kara wrote: > writeback bit set. XFS plays the revalidation sequence counter games > because of this so we'd have to do something similar for ext2. Not that I'd > care as much about ext2 writeback performance but it should not be that > hard and we'll definitely need some similar solution for ext4 anyway. Can > you give that a try (as a followup "performance improvement" patch). Darrick has mentioned that he is looking into lifting more of the validation sequence counter validation into iomap. In the meantime I have a series here that at least maps multiple blocks inside a folio in a single go, which might be worth trying with ext2 as well: http://git.infradead.org/users/hch/misc.git/shortlog/refs/heads/iomap-map-multiple-blocks