On Mon, Mar 10, 2025 at 06:39:39PM +0000, John Garry wrote: > Refactor xfs_reflink_end_cow_extent() into separate parts which process > the CoW range and commit the transaction. > > This refactoring will be used in future for when it is required to commit > a range of extents as a single transaction, similar to how it was done > pre-commit d6f215f359637. Darrick pointed out that if you do more than just a tiny number of extents per transactions you run out of log reservations very quickly here: https://lore.kernel.org/all/20240329162936.GI6390@frogsfrogsfrogs/ how does your scheme deal with that?