/* Reservation functions here avoid a huge stack in xfs_trans_init due to register overflow from temporaries in the calculations.  */
STATIC uint xfs_calc_write_reservation(xfs_mount_t *mp)
/* Reservation functions here avoid a huge stack in xfs_trans_init due to register overflow from temporaries in the calculations.  */
STATIC uint xfs_calc_write_reservation(xfs_mount_t *mp)
{
	return XFS_CALC_WRITE_LOG_RES(mp) + XFS_DQUOT_LOGRES(mp);
}