|
@@ -644,15 +644,14 @@ xfs_calc_qm_setqlim_reservation(
|
|
|
|
|
|
/*
|
|
/*
|
|
* Allocating quota on disk if needed.
|
|
* Allocating quota on disk if needed.
|
|
- * the write transaction log space: M_RES(mp)->tr_write.tr_logres
|
|
|
|
|
|
+ * the write transaction log space for quota file extent allocation
|
|
* the unit of quota allocation: one system block size
|
|
* the unit of quota allocation: one system block size
|
|
*/
|
|
*/
|
|
STATIC uint
|
|
STATIC uint
|
|
xfs_calc_qm_dqalloc_reservation(
|
|
xfs_calc_qm_dqalloc_reservation(
|
|
struct xfs_mount *mp)
|
|
struct xfs_mount *mp)
|
|
{
|
|
{
|
|
- ASSERT(M_RES(mp)->tr_write.tr_logres);
|
|
|
|
- return M_RES(mp)->tr_write.tr_logres +
|
|
|
|
|
|
+ return xfs_calc_write_reservation(mp) +
|
|
xfs_calc_buf_res(1,
|
|
xfs_calc_buf_res(1,
|
|
XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) - 1);
|
|
XFS_FSB_TO_B(mp, XFS_DQUOT_CLUSTER_SIZE_FSB) - 1);
|
|
}
|
|
}
|
|
@@ -784,7 +783,6 @@ xfs_trans_resv_calc(
|
|
/* The following transaction are logged in logical format */
|
|
/* The following transaction are logged in logical format */
|
|
resp->tr_ichange.tr_logres = xfs_calc_ichange_reservation(mp);
|
|
resp->tr_ichange.tr_logres = xfs_calc_ichange_reservation(mp);
|
|
resp->tr_growdata.tr_logres = xfs_calc_growdata_reservation(mp);
|
|
resp->tr_growdata.tr_logres = xfs_calc_growdata_reservation(mp);
|
|
- resp->tr_swrite.tr_logres = xfs_calc_swrite_reservation(mp);
|
|
|
|
resp->tr_fsyncts.tr_logres = xfs_calc_swrite_reservation(mp);
|
|
resp->tr_fsyncts.tr_logres = xfs_calc_swrite_reservation(mp);
|
|
resp->tr_writeid.tr_logres = xfs_calc_writeid_reservation(mp);
|
|
resp->tr_writeid.tr_logres = xfs_calc_writeid_reservation(mp);
|
|
resp->tr_attrsetrt.tr_logres = xfs_calc_attrsetrt_reservation(mp);
|
|
resp->tr_attrsetrt.tr_logres = xfs_calc_attrsetrt_reservation(mp);
|