tangled
alpha
login
or
join now
tjh.dev
/
kernel
1
fork
atom
Linux kernel mirror (for testing)
git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel
os
linux
1
fork
atom
overview
issues
pulls
pipelines
Merge branch 'xfs-coccinelle-cleanups' into for-next
Dave Chinner
11 years ago
c14fc013
216875a5
+9
-24
5 changed files
expand all
collapse all
unified
split
fs
xfs
libxfs
xfs_bmap.c
xfs_ialloc.c
xfs_file.c
xfs_qm.c
xfs_super.c
+1
-5
fs/xfs/libxfs/xfs_bmap.c
reviewed
···
5589
5589
XFS_WANT_CORRUPTED_GOTO(i == 1, out_error);
5590
5590
5591
5591
got.br_startoff = startoff;
5592
5592
-
error = xfs_bmbt_update(cur, got.br_startoff, got.br_startblock,
5592
5592
+
return xfs_bmbt_update(cur, got.br_startoff, got.br_startblock,
5593
5593
got.br_blockcount, got.br_state);
5594
5594
-
if (error)
5595
5595
-
return error;
5596
5596
-
5597
5597
-
return 0;
5598
5594
5599
5595
out_error:
5600
5596
return error;
+1
-5
fs/xfs/libxfs/xfs_ialloc.c
reviewed
···
1134
1134
XFS_WANT_CORRUPTED_RETURN((rec.ir_free == frec->ir_free) &&
1135
1135
(rec.ir_freecount == frec->ir_freecount));
1136
1136
1137
1137
-
error = xfs_inobt_update(cur, &rec);
1138
1138
-
if (error)
1139
1139
-
return error;
1140
1140
-
1141
1141
-
return 0;
1137
1137
+
return xfs_inobt_update(cur, &rec);
1142
1138
}
1143
1139
1144
1140
/*
+1
-5
fs/xfs/xfs_file.c
reviewed
···
930
930
{
931
931
struct inode *inode = file_inode(file);
932
932
xfs_inode_t *ip = XFS_I(inode);
933
933
-
int error;
934
933
size_t bufsize;
935
934
936
935
/*
···
946
947
*/
947
948
bufsize = (size_t)min_t(loff_t, 32768, ip->i_d.di_size);
948
949
949
949
-
error = xfs_readdir(ip, ctx, bufsize);
950
950
-
if (error)
951
951
-
return error;
952
952
-
return 0;
950
950
+
return xfs_readdir(ip, ctx, bufsize);
953
951
}
954
952
955
953
STATIC int
+5
-7
fs/xfs/xfs_qm.c
reviewed
···
1747
1747
xfs_iunlock(ip, lockflags);
1748
1748
if (O_udqpp)
1749
1749
*O_udqpp = uq;
1750
1750
-
else if (uq)
1750
1750
+
else
1751
1751
xfs_qm_dqrele(uq);
1752
1752
if (O_gdqpp)
1753
1753
*O_gdqpp = gq;
1754
1754
-
else if (gq)
1754
1754
+
else
1755
1755
xfs_qm_dqrele(gq);
1756
1756
if (O_pdqpp)
1757
1757
*O_pdqpp = pq;
1758
1758
-
else if (pq)
1758
1758
+
else
1759
1759
xfs_qm_dqrele(pq);
1760
1760
return 0;
1761
1761
1762
1762
error_rele:
1763
1763
-
if (gq)
1764
1764
-
xfs_qm_dqrele(gq);
1765
1765
-
if (uq)
1766
1766
-
xfs_qm_dqrele(uq);
1763
1763
+
xfs_qm_dqrele(gq);
1764
1764
+
xfs_qm_dqrele(uq);
1767
1765
return error;
1768
1766
}
1769
1767
+1
-2
fs/xfs/xfs_super.c
reviewed
···
793
793
out_free_ddev_targ:
794
794
xfs_free_buftarg(mp, mp->m_ddev_targp);
795
795
out_close_rtdev:
796
796
-
if (rtdev)
797
797
-
xfs_blkdev_put(rtdev);
796
796
+
xfs_blkdev_put(rtdev);
798
797
out_close_logdev:
799
798
if (logdev && logdev != ddev)
800
799
xfs_blkdev_put(logdev);