diff options
author | Dave Chinner <david@fromorbit.com> | 2014-12-03 17:18:21 -0500 |
---|---|---|
committer | Dave Chinner <david@fromorbit.com> | 2014-12-03 17:18:21 -0500 |
commit | e77b8547ca9c4b87932e9da3db906bc016885d8d (patch) | |
tree | d16d7f5d9c4337bf8cbf13266cf4f3d3e989815b /fs/xfs/libxfs | |
parent | db52d09ecbf85c54e263a9d1ebfb615a9b2b3ba6 (diff) | |
parent | d254aaec5d1aa2997dad035db340c298eaa8d089 (diff) |
Merge branch 'xfs-coccinelle-cleanups' into xfs-misc-fixes-for-3.19-2
Diffstat (limited to 'fs/xfs/libxfs')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 6 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.c | 6 |
2 files changed, 2 insertions, 10 deletions
diff --git a/fs/xfs/libxfs/xfs_bmap.c b/fs/xfs/libxfs/xfs_bmap.c index 79c981984dca..20d2e96aef6a 100644 --- a/fs/xfs/libxfs/xfs_bmap.c +++ b/fs/xfs/libxfs/xfs_bmap.c | |||
@@ -5592,12 +5592,8 @@ shift_extent: | |||
5592 | XFS_WANT_CORRUPTED_GOTO(i == 1, out_error); | 5592 | XFS_WANT_CORRUPTED_GOTO(i == 1, out_error); |
5593 | 5593 | ||
5594 | got.br_startoff = startoff; | 5594 | got.br_startoff = startoff; |
5595 | error = xfs_bmbt_update(cur, got.br_startoff, got.br_startblock, | 5595 | return xfs_bmbt_update(cur, got.br_startoff, got.br_startblock, |
5596 | got.br_blockcount, got.br_state); | 5596 | got.br_blockcount, got.br_state); |
5597 | if (error) | ||
5598 | return error; | ||
5599 | |||
5600 | return 0; | ||
5601 | 5597 | ||
5602 | out_error: | 5598 | out_error: |
5603 | return error; | 5599 | return error; |
diff --git a/fs/xfs/libxfs/xfs_ialloc.c b/fs/xfs/libxfs/xfs_ialloc.c index 23dcb72fc5e6..705a7530176e 100644 --- a/fs/xfs/libxfs/xfs_ialloc.c +++ b/fs/xfs/libxfs/xfs_ialloc.c | |||
@@ -1137,11 +1137,7 @@ xfs_dialloc_ag_update_inobt( | |||
1137 | XFS_WANT_CORRUPTED_RETURN((rec.ir_free == frec->ir_free) && | 1137 | XFS_WANT_CORRUPTED_RETURN((rec.ir_free == frec->ir_free) && |
1138 | (rec.ir_freecount == frec->ir_freecount)); | 1138 | (rec.ir_freecount == frec->ir_freecount)); |
1139 | 1139 | ||
1140 | error = xfs_inobt_update(cur, &rec); | 1140 | return xfs_inobt_update(cur, &rec); |
1141 | if (error) | ||
1142 | return error; | ||
1143 | |||
1144 | return 0; | ||
1145 | } | 1141 | } |
1146 | 1142 | ||
1147 | /* | 1143 | /* |