xfs: refactor xfs_trans_reserve() interface