|
@@ -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);
|
|
}
|
|
}
|