aboutsummaryrefslogtreecommitdiffstats
path: root/fs/xfs/xfs_trans.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r--fs/xfs/xfs_trans.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c
index a81625c75a91..6ba62c0e24d1 100644
--- a/fs/xfs/xfs_trans.c
+++ b/fs/xfs/xfs_trans.c
@@ -546,6 +546,17 @@ xfs_calc_clear_agi_bucket_reservation(
546} 546}
547 547
548/* 548/*
549 * Clearing the quotaflags in the superblock.
550 * the super block for changing quota flags: sector size
551 */
552STATIC uint
553xfs_calc_qm_sbchange_reservation(
554 struct xfs_mount *mp)
555{
556 return xfs_calc_buf_res(1, mp->m_sb.sb_sectsize);
557}
558
559/*
549 * Initialize the precomputed transaction reservation values 560 * Initialize the precomputed transaction reservation values
550 * in the mount structure. 561 * in the mount structure.
551 */ 562 */
@@ -576,6 +587,7 @@ xfs_trans_init(
576 resp->tr_growrtalloc = xfs_calc_growrtalloc_reservation(mp); 587 resp->tr_growrtalloc = xfs_calc_growrtalloc_reservation(mp);
577 resp->tr_growrtzero = xfs_calc_growrtzero_reservation(mp); 588 resp->tr_growrtzero = xfs_calc_growrtzero_reservation(mp);
578 resp->tr_growrtfree = xfs_calc_growrtfree_reservation(mp); 589 resp->tr_growrtfree = xfs_calc_growrtfree_reservation(mp);
590 resp->tr_qm_sbchange = xfs_calc_qm_sbchange_reservation(mp);
579} 591}
580 592
581/* 593/*