mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 18:40:43 +03:00
Prefer VERIFY0(n) over VERIFY3U(n, ==, 0)
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Signed-off-by: Rob Norris <robn@despairlabs.com> Sponsored-by: https://despairlabs.com/sponsor/ Closes #17591
This commit is contained in:
committed by
Brian Behlendorf
parent
c39e076f23
commit
5c7df3bcac
+2
-2
@@ -5554,7 +5554,7 @@ static void
|
||||
arc_hdr_verify(arc_buf_hdr_t *hdr, blkptr_t *bp)
|
||||
{
|
||||
if (BP_IS_HOLE(bp) || BP_IS_EMBEDDED(bp)) {
|
||||
ASSERT3U(HDR_GET_PSIZE(hdr), ==, 0);
|
||||
ASSERT0(HDR_GET_PSIZE(hdr));
|
||||
ASSERT3U(arc_hdr_get_compress(hdr), ==, ZIO_COMPRESS_OFF);
|
||||
} else {
|
||||
if (HDR_COMPRESSION_ENABLED(hdr)) {
|
||||
@@ -6973,7 +6973,7 @@ arc_write_done(zio_t *zio)
|
||||
arc_buf_hdr_t *exists;
|
||||
kmutex_t *hash_lock;
|
||||
|
||||
ASSERT3U(zio->io_error, ==, 0);
|
||||
ASSERT0(zio->io_error);
|
||||
|
||||
arc_cksum_verify(buf);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user