Btw, this seems like the right series to also look into our problem that large attributes are not updated transactionally. We just do a synchronous write (xfs_bwrite) for them but don't include them in the transaction. With the deferred operations and rolled transactions that should be fairly easy to fix.