diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-11 08:46:53 -0400 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2014-09-11 08:46:53 -0400 |
commit | 336879b1da97fffc097f77c6d6f818660f2826f0 (patch) | |
tree | 4ddb4d1c5d2b67fb096c72e41d2a03b01a605041 /fs/xfs/xfs_trans.c | |
parent | 3d3cbd84300e7be1e53083cac0f6f9c12978ecb4 (diff) | |
parent | fdcaa1dbb7c6ed419b10fb8cdb5001ab0a00538f (diff) |
Merge remote-tracking branch 'airlied/drm-next' into topic/vblank-rework
Dave asked me to do the backmerge before sending him the revised pull
request, so here we go. Nothing fancy in the conflicts, just a few
things changed right next to each another.
Conflicts:
drivers/gpu/drm/drm_irq.c
Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
Diffstat (limited to 'fs/xfs/xfs_trans.c')
-rw-r--r-- | fs/xfs/xfs_trans.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/fs/xfs/xfs_trans.c b/fs/xfs/xfs_trans.c index d03932564ccb..30e8e3410955 100644 --- a/fs/xfs/xfs_trans.c +++ b/fs/xfs/xfs_trans.c | |||
@@ -190,7 +190,7 @@ xfs_trans_reserve( | |||
190 | -((int64_t)blocks), rsvd); | 190 | -((int64_t)blocks), rsvd); |
191 | if (error != 0) { | 191 | if (error != 0) { |
192 | current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS); | 192 | current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS); |
193 | return (XFS_ERROR(ENOSPC)); | 193 | return -ENOSPC; |
194 | } | 194 | } |
195 | tp->t_blk_res += blocks; | 195 | tp->t_blk_res += blocks; |
196 | } | 196 | } |
@@ -241,7 +241,7 @@ xfs_trans_reserve( | |||
241 | error = xfs_mod_incore_sb(tp->t_mountp, XFS_SBS_FREXTENTS, | 241 | error = xfs_mod_incore_sb(tp->t_mountp, XFS_SBS_FREXTENTS, |
242 | -((int64_t)rtextents), rsvd); | 242 | -((int64_t)rtextents), rsvd); |
243 | if (error) { | 243 | if (error) { |
244 | error = XFS_ERROR(ENOSPC); | 244 | error = -ENOSPC; |
245 | goto undo_log; | 245 | goto undo_log; |
246 | } | 246 | } |
247 | tp->t_rtx_res += rtextents; | 247 | tp->t_rtx_res += rtextents; |
@@ -874,7 +874,7 @@ xfs_trans_commit( | |||
874 | goto out_unreserve; | 874 | goto out_unreserve; |
875 | 875 | ||
876 | if (XFS_FORCED_SHUTDOWN(mp)) { | 876 | if (XFS_FORCED_SHUTDOWN(mp)) { |
877 | error = XFS_ERROR(EIO); | 877 | error = -EIO; |
878 | goto out_unreserve; | 878 | goto out_unreserve; |
879 | } | 879 | } |
880 | 880 | ||
@@ -917,7 +917,7 @@ out_unreserve: | |||
917 | if (tp->t_ticket) { | 917 | if (tp->t_ticket) { |
918 | commit_lsn = xfs_log_done(mp, tp->t_ticket, NULL, log_flags); | 918 | commit_lsn = xfs_log_done(mp, tp->t_ticket, NULL, log_flags); |
919 | if (commit_lsn == -1 && !error) | 919 | if (commit_lsn == -1 && !error) |
920 | error = XFS_ERROR(EIO); | 920 | error = -EIO; |
921 | } | 921 | } |
922 | current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS); | 922 | current_restore_flags_nested(&tp->t_pflags, PF_FSTRANS); |
923 | xfs_trans_free_items(tp, NULLCOMMITLSN, error ? XFS_TRANS_ABORT : 0); | 923 | xfs_trans_free_items(tp, NULLCOMMITLSN, error ? XFS_TRANS_ABORT : 0); |
@@ -1024,7 +1024,7 @@ xfs_trans_roll( | |||
1024 | */ | 1024 | */ |
1025 | error = xfs_trans_commit(trans, 0); | 1025 | error = xfs_trans_commit(trans, 0); |
1026 | if (error) | 1026 | if (error) |
1027 | return (error); | 1027 | return error; |
1028 | 1028 | ||
1029 | trans = *tpp; | 1029 | trans = *tpp; |
1030 | 1030 | ||