diff options
Diffstat (limited to 'fs/xfs/xfs_fsops.c')
-rw-r--r-- | fs/xfs/xfs_fsops.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/fs/xfs/xfs_fsops.c b/fs/xfs/xfs_fsops.c index 614eb0cc3608..e64ee5288b86 100644 --- a/fs/xfs/xfs_fsops.c +++ b/fs/xfs/xfs_fsops.c | |||
@@ -203,8 +203,9 @@ xfs_growfs_data_private( | |||
203 | 203 | ||
204 | tp = xfs_trans_alloc(mp, XFS_TRANS_GROWFS); | 204 | tp = xfs_trans_alloc(mp, XFS_TRANS_GROWFS); |
205 | tp->t_flags |= XFS_TRANS_RESERVE; | 205 | tp->t_flags |= XFS_TRANS_RESERVE; |
206 | if ((error = xfs_trans_reserve(tp, XFS_GROWFS_SPACE_RES(mp), | 206 | error = xfs_trans_reserve(tp, &M_RES(mp)->tr_growdata, |
207 | XFS_GROWDATA_LOG_RES(mp), 0, 0, 0))) { | 207 | XFS_GROWFS_SPACE_RES(mp), 0); |
208 | if (error) { | ||
208 | xfs_trans_cancel(tp, 0); | 209 | xfs_trans_cancel(tp, 0); |
209 | return error; | 210 | return error; |
210 | } | 211 | } |
@@ -739,8 +740,7 @@ xfs_fs_log_dummy( | |||
739 | int error; | 740 | int error; |
740 | 741 | ||
741 | tp = _xfs_trans_alloc(mp, XFS_TRANS_DUMMY1, KM_SLEEP); | 742 | tp = _xfs_trans_alloc(mp, XFS_TRANS_DUMMY1, KM_SLEEP); |
742 | error = xfs_trans_reserve(tp, 0, XFS_SB_LOG_RES(mp), 0, 0, | 743 | error = xfs_trans_reserve(tp, &M_RES(mp)->tr_sb, 0, 0); |
743 | XFS_DEFAULT_LOG_COUNT); | ||
744 | if (error) { | 744 | if (error) { |
745 | xfs_trans_cancel(tp, 0); | 745 | xfs_trans_cancel(tp, 0); |
746 | return error; | 746 | return error; |