On Wed, Mar 06, 2024 at 07:40:02AM -0700, Keith Busch wrote: > Oh my mistake: xfs_discard_extents() does this in a loop and chains > along the previous iteration's bio. Your update is needed and looks > good. Yeah, the whole point for the in/out biop parameter is to allow this kind of chaining.