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 | |
parent | db52d09ecbf85c54e263a9d1ebfb615a9b2b3ba6 (diff) | |
parent | d254aaec5d1aa2997dad035db340c298eaa8d089 (diff) |
Merge branch 'xfs-coccinelle-cleanups' into xfs-misc-fixes-for-3.19-2
Diffstat (limited to 'fs')
-rw-r--r-- | fs/xfs/libxfs/xfs_bmap.c | 6 | ||||
-rw-r--r-- | fs/xfs/libxfs/xfs_ialloc.c | 6 | ||||
-rw-r--r-- | fs/xfs/xfs_file.c | 6 | ||||
-rw-r--r-- | fs/xfs/xfs_qm.c | 12 | ||||
-rw-r--r-- | fs/xfs/xfs_super.c | 3 |
5 files changed, 9 insertions, 24 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 | /* |
diff --git a/fs/xfs/xfs_file.c b/fs/xfs/xfs_file.c index eb596b419942..5f467cf21c26 100644 --- a/fs/xfs/xfs_file.c +++ b/fs/xfs/xfs_file.c | |||
@@ -933,7 +933,6 @@ xfs_file_readdir( | |||
933 | { | 933 | { |
934 | struct inode *inode = file_inode(file); | 934 | struct inode *inode = file_inode(file); |
935 | xfs_inode_t *ip = XFS_I(inode); | 935 | xfs_inode_t *ip = XFS_I(inode); |
936 | int error; | ||
937 | size_t bufsize; | 936 | size_t bufsize; |
938 | 937 | ||
939 | /* | 938 | /* |
@@ -950,10 +949,7 @@ xfs_file_readdir( | |||
950 | */ | 949 | */ |
951 | bufsize = (size_t)min_t(loff_t, 32768, ip->i_d.di_size); | 950 | bufsize = (size_t)min_t(loff_t, 32768, ip->i_d.di_size); |
952 | 951 | ||
953 | error = xfs_readdir(ip, ctx, bufsize); | 952 | return xfs_readdir(ip, ctx, bufsize); |
954 | if (error) | ||
955 | return error; | ||
956 | return 0; | ||
957 | } | 953 | } |
958 | 954 | ||
959 | STATIC int | 955 | STATIC int |
diff --git a/fs/xfs/xfs_qm.c b/fs/xfs/xfs_qm.c index d68f23021af3..9a4b50a411f3 100644 --- a/fs/xfs/xfs_qm.c +++ b/fs/xfs/xfs_qm.c | |||
@@ -1749,23 +1749,21 @@ xfs_qm_vop_dqalloc( | |||
1749 | xfs_iunlock(ip, lockflags); | 1749 | xfs_iunlock(ip, lockflags); |
1750 | if (O_udqpp) | 1750 | if (O_udqpp) |
1751 | *O_udqpp = uq; | 1751 | *O_udqpp = uq; |
1752 | else if (uq) | 1752 | else |
1753 | xfs_qm_dqrele(uq); | 1753 | xfs_qm_dqrele(uq); |
1754 | if (O_gdqpp) | 1754 | if (O_gdqpp) |
1755 | *O_gdqpp = gq; | 1755 | *O_gdqpp = gq; |
1756 | else if (gq) | 1756 | else |
1757 | xfs_qm_dqrele(gq); | 1757 | xfs_qm_dqrele(gq); |
1758 | if (O_pdqpp) | 1758 | if (O_pdqpp) |
1759 | *O_pdqpp = pq; | 1759 | *O_pdqpp = pq; |
1760 | else if (pq) | 1760 | else |
1761 | xfs_qm_dqrele(pq); | 1761 | xfs_qm_dqrele(pq); |
1762 | return 0; | 1762 | return 0; |
1763 | 1763 | ||
1764 | error_rele: | 1764 | error_rele: |
1765 | if (gq) | 1765 | xfs_qm_dqrele(gq); |
1766 | xfs_qm_dqrele(gq); | 1766 | xfs_qm_dqrele(uq); |
1767 | if (uq) | ||
1768 | xfs_qm_dqrele(uq); | ||
1769 | return error; | 1767 | return error; |
1770 | } | 1768 | } |
1771 | 1769 | ||
diff --git a/fs/xfs/xfs_super.c b/fs/xfs/xfs_super.c index 03e3cc242902..a0f58d933261 100644 --- a/fs/xfs/xfs_super.c +++ b/fs/xfs/xfs_super.c | |||
@@ -796,8 +796,7 @@ xfs_open_devices( | |||
796 | out_free_ddev_targ: | 796 | out_free_ddev_targ: |
797 | xfs_free_buftarg(mp, mp->m_ddev_targp); | 797 | xfs_free_buftarg(mp, mp->m_ddev_targp); |
798 | out_close_rtdev: | 798 | out_close_rtdev: |
799 | if (rtdev) | 799 | xfs_blkdev_put(rtdev); |
800 | xfs_blkdev_put(rtdev); | ||
801 | out_close_logdev: | 800 | out_close_logdev: |
802 | if (logdev && logdev != ddev) | 801 | if (logdev && logdev != ddev) |
803 | xfs_blkdev_put(logdev); | 802 | xfs_blkdev_put(logdev); |