summaryrefslogtreecommitdiff
path: root/usr/src/uts/common/fs/zfs/vdev_raidz.c
diff options
context:
space:
mode:
authorMadhav Suresh <madhav.suresh@delphix.com>2012-07-31 06:38:31 -0700
committerMadhav Suresh <madhav.suresh@delphix.com>2012-07-31 06:38:31 -0700
commit9fa718d2f477620f14e3f2948dd03e3470add804 (patch)
tree71b28b6487a785e3480b3409ec9239a018e4ef1a /usr/src/uts/common/fs/zfs/vdev_raidz.c
parent536df542129698c6bedf6f515d0d547d89268c55 (diff)
downloadillumos-gate-9fa718d2f477620f14e3f2948dd03e3470add804.tar.gz
3006 VERIFY[S,U,P] and ASSERT[S,U,P] frequently check if first argument is zero
Reviewed by: Matt Ahrens <matthew.ahrens@delphix.com> Reviewed by: George Wilson <george.wilson@delphix.com> Approved by: Garrett D'Amore <garrett@damore.org>
Diffstat (limited to 'usr/src/uts/common/fs/zfs/vdev_raidz.c')
-rw-r--r--usr/src/uts/common/fs/zfs/vdev_raidz.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/uts/common/fs/zfs/vdev_raidz.c b/usr/src/uts/common/fs/zfs/vdev_raidz.c
index 030ea42930..efae534257 100644
--- a/usr/src/uts/common/fs/zfs/vdev_raidz.c
+++ b/usr/src/uts/common/fs/zfs/vdev_raidz.c
@@ -281,7 +281,7 @@ vdev_raidz_map_free_vsd(zio_t *zio)
{
raidz_map_t *rm = zio->io_vsd;
- ASSERT3U(rm->rm_freed, ==, 0);
+ ASSERT0(rm->rm_freed);
rm->rm_freed = 1;
if (rm->rm_reports == 0)
@@ -1134,7 +1134,7 @@ vdev_raidz_matrix_invert(raidz_map_t *rm, int n, int nmissing, int *missing,
*/
for (i = 0; i < nmissing; i++) {
for (j = 0; j < missing[i]; j++) {
- ASSERT3U(rows[i][j], ==, 0);
+ ASSERT0(rows[i][j]);
}
ASSERT3U(rows[i][missing[i]], !=, 0);
@@ -1175,7 +1175,7 @@ vdev_raidz_matrix_invert(raidz_map_t *rm, int n, int nmissing, int *missing,
if (j == missing[i]) {
ASSERT3U(rows[i][j], ==, 1);
} else {
- ASSERT3U(rows[i][j], ==, 0);
+ ASSERT0(rows[i][j]);
}
}
}