diff options
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r-- | fs/xfs/xfs_trans.c | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index 8570b826fedd..66b849358e62 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c | |||
@@ -297,7 +297,7 @@ xfs_trans_dup( | |||
297 | tp->t_rtx_res = tp->t_rtx_res_used; | 297 | tp->t_rtx_res = tp->t_rtx_res_used; |
298 | ntp->t_pflags = tp->t_pflags; | 298 | ntp->t_pflags = tp->t_pflags; |
299 | 299 | ||
300 | XFS_TRANS_DUP_DQINFO(tp->t_mountp, tp, ntp); | 300 | xfs_trans_dup_dqinfo(tp, ntp); |
301 | 301 | ||
302 | atomic_inc(&tp->t_mountp->m_active_trans); | 302 | atomic_inc(&tp->t_mountp->m_active_trans); |
303 | return ntp; | 303 | return ntp; |
@@ -628,8 +628,6 @@ xfs_trans_apply_sb_deltas( | |||
628 | xfs_trans_log_buf(tp, bp, offsetof(xfs_dsb_t, sb_icount), | 628 | xfs_trans_log_buf(tp, bp, offsetof(xfs_dsb_t, sb_icount), |
629 | offsetof(xfs_dsb_t, sb_frextents) + | 629 | offsetof(xfs_dsb_t, sb_frextents) + |
630 | sizeof(sbp->sb_frextents) - 1); | 630 | sizeof(sbp->sb_frextents) - 1); |
631 | |||
632 | tp->t_mountp->m_super->s_dirt = 1; | ||
633 | } | 631 | } |
634 | 632 | ||
635 | /* | 633 | /* |
@@ -831,7 +829,7 @@ shut_us_down: | |||
831 | * means is that we have some (non-persistent) quota | 829 | * means is that we have some (non-persistent) quota |
832 | * reservations that need to be unreserved. | 830 | * reservations that need to be unreserved. |
833 | */ | 831 | */ |
834 | XFS_TRANS_UNRESERVE_AND_MOD_DQUOTS(mp, tp); | 832 | xfs_trans_unreserve_and_mod_dquots(tp); |
835 | if (tp->t_ticket) { | 833 | if (tp->t_ticket) { |
836 | commit_lsn = xfs_log_done(mp, tp->t_ticket, | 834 | commit_lsn = xfs_log_done(mp, tp->t_ticket, |
837 | NULL, log_flags); | 835 | NULL, log_flags); |
@@ -850,10 +848,9 @@ shut_us_down: | |||
850 | /* | 848 | /* |
851 | * If we need to update the superblock, then do it now. | 849 | * If we need to update the superblock, then do it now. |
852 | */ | 850 | */ |
853 | if (tp->t_flags & XFS_TRANS_SB_DIRTY) { | 851 | if (tp->t_flags & XFS_TRANS_SB_DIRTY) |
854 | xfs_trans_apply_sb_deltas(tp); | 852 | xfs_trans_apply_sb_deltas(tp); |
855 | } | 853 | xfs_trans_apply_dquot_deltas(tp); |
856 | XFS_TRANS_APPLY_DQUOT_DELTAS(mp, tp); | ||
857 | 854 | ||
858 | /* | 855 | /* |
859 | * Ask each log item how many log_vector entries it will | 856 | * Ask each log item how many log_vector entries it will |
@@ -1058,7 +1055,7 @@ xfs_trans_uncommit( | |||
1058 | } | 1055 | } |
1059 | 1056 | ||
1060 | xfs_trans_unreserve_and_mod_sb(tp); | 1057 | xfs_trans_unreserve_and_mod_sb(tp); |
1061 | XFS_TRANS_UNRESERVE_AND_MOD_DQUOTS(tp->t_mountp, tp); | 1058 | xfs_trans_unreserve_and_mod_dquots(tp); |
1062 | 1059 | ||
1063 | xfs_trans_free_items(tp, flags); | 1060 | xfs_trans_free_items(tp, flags); |
1064 | xfs_trans_free_busy(tp); | 1061 | xfs_trans_free_busy(tp); |
@@ -1183,7 +1180,7 @@ xfs_trans_cancel( | |||
1183 | } | 1180 | } |
1184 | #endif | 1181 | #endif |
1185 | xfs_trans_unreserve_and_mod_sb(tp); | 1182 | xfs_trans_unreserve_and_mod_sb(tp); |
1186 | XFS_TRANS_UNRESERVE_AND_MOD_DQUOTS(mp, tp); | 1183 | xfs_trans_unreserve_and_mod_dquots(tp); |
1187 | 1184 | ||
1188 | if (tp->t_ticket) { | 1185 | if (tp->t_ticket) { |
1189 | if (flags & XFS_TRANS_RELEASE_LOG_RES) { | 1186 | if (flags & XFS_TRANS_RELEASE_LOG_RES) { |
@@ -1213,7 +1210,7 @@ xfs_trans_free( | |||
1213 | xfs_trans_t *tp) | 1210 | xfs_trans_t *tp) |
1214 | { | 1211 | { |
1215 | atomic_dec(&tp->t_mountp->m_active_trans); | 1212 | atomic_dec(&tp->t_mountp->m_active_trans); |
1216 | XFS_TRANS_FREE_DQINFO(tp->t_mountp, tp); | 1213 | xfs_trans_free_dqinfo(tp); |
1217 | kmem_zone_free(xfs_trans_zone, tp); | 1214 | kmem_zone_free(xfs_trans_zone, tp); |
1218 | } | 1215 | } |
1219 | 1216 | ||