xfs: refactor xlog_recover_commit_trans