diff options
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r-- | fs/xfs/xfs_trans.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index 8570b826fedd..fffabc0aefcb 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; |
@@ -831,7 +831,7 @@ shut_us_down: | |||
831 | * means is that we have some (non-persistent) quota | 831 | * means is that we have some (non-persistent) quota |
832 | * reservations that need to be unreserved. | 832 | * reservations that need to be unreserved. |
833 | */ | 833 | */ |
834 | XFS_TRANS_UNRESERVE_AND_MOD_DQUOTS(mp, tp); | 834 | xfs_trans_unreserve_and_mod_dquots(tp); |
835 | if (tp->t_ticket) { | 835 | if (tp->t_ticket) { |
836 | commit_lsn = xfs_log_done(mp, tp->t_ticket, | 836 | commit_lsn = xfs_log_done(mp, tp->t_ticket, |
837 | NULL, log_flags); | 837 | NULL, log_flags); |
@@ -850,10 +850,9 @@ shut_us_down: | |||
850 | /* | 850 | /* |
851 | * If we need to update the superblock, then do it now. | 851 | * If we need to update the superblock, then do it now. |
852 | */ | 852 | */ |
853 | if (tp->t_flags & XFS_TRANS_SB_DIRTY) { | 853 | if (tp->t_flags & XFS_TRANS_SB_DIRTY) |
854 | xfs_trans_apply_sb_deltas(tp); | 854 | xfs_trans_apply_sb_deltas(tp); |
855 | } | 855 | xfs_trans_apply_dquot_deltas(tp); |
856 | XFS_TRANS_APPLY_DQUOT_DELTAS(mp, tp); | ||
857 | 856 | ||
858 | /* | 857 | /* |
859 | * Ask each log item how many log_vector entries it will | 858 | * Ask each log item how many log_vector entries it will |
@@ -1058,7 +1057,7 @@ xfs_trans_uncommit( | |||
1058 | } | 1057 | } |
1059 | 1058 | ||
1060 | xfs_trans_unreserve_and_mod_sb(tp); | 1059 | xfs_trans_unreserve_and_mod_sb(tp); |
1061 | XFS_TRANS_UNRESERVE_AND_MOD_DQUOTS(tp->t_mountp, tp); | 1060 | xfs_trans_unreserve_and_mod_dquots(tp); |
1062 | 1061 | ||
1063 | xfs_trans_free_items(tp, flags); | 1062 | xfs_trans_free_items(tp, flags); |
1064 | xfs_trans_free_busy(tp); | 1063 | xfs_trans_free_busy(tp); |
@@ -1183,7 +1182,7 @@ xfs_trans_cancel( | |||
1183 | } | 1182 | } |
1184 | #endif | 1183 | #endif |
1185 | xfs_trans_unreserve_and_mod_sb(tp); | 1184 | xfs_trans_unreserve_and_mod_sb(tp); |
1186 | XFS_TRANS_UNRESERVE_AND_MOD_DQUOTS(mp, tp); | 1185 | xfs_trans_unreserve_and_mod_dquots(tp); |
1187 | 1186 | ||
1188 | if (tp->t_ticket) { | 1187 | if (tp->t_ticket) { |
1189 | if (flags & XFS_TRANS_RELEASE_LOG_RES) { | 1188 | if (flags & XFS_TRANS_RELEASE_LOG_RES) { |
@@ -1213,7 +1212,7 @@ xfs_trans_free( | |||
1213 | xfs_trans_t *tp) | 1212 | xfs_trans_t *tp) |
1214 | { | 1213 | { |
1215 | atomic_dec(&tp->t_mountp->m_active_trans); | 1214 | atomic_dec(&tp->t_mountp->m_active_trans); |
1216 | XFS_TRANS_FREE_DQINFO(tp->t_mountp, tp); | 1215 | xfs_trans_free_dqinfo(tp); |
1217 | kmem_zone_free(xfs_trans_zone, tp); | 1216 | kmem_zone_free(xfs_trans_zone, tp); |
1218 | } | 1217 | } |
1219 | 1218 | ||