On Wed, Mar 27, 2024 at 08:07:55AM -0700, Darrick J. Wong wrote: > How does it happen that xfs_rtfree_blocks gets called more than once in > the same transaction? Is that simply the effect of xfs_bunmapi_range > and xfs_unmap_exten calling __xfs_bunmapi with > nextents == XFS_ITRUNC_MAX_EXTENTS==2? Yes. > What if we simply didn't unmap multiple extents per bunmapi call for > realtime files? Would that eliminate the need for > XFS_TRANS_RTBITMAP_LOCKED? Probably. Not that I really want to rock that boat now when we'll also have the extent free item / defer ops based path soon.