I think the problem is that t_log_res just contains the log reservation when the transaction was created. But each item processed by xfs_defer_finish uses up some of it, but in some cases these might be different operations and not just more refcount updates, e.g. for xfs_itruncate_extents which I see the issues with we mix EFI/EFD items with refcount updates. I still don't have a good idea how to fix this, though. One idea would be to prevent mixing different items, but I think being able to mix them was one of your goals with the defer infrastructure rewrite. -- To unsubscribe from this list: send the line "unsubscribe linux-xfs" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html