]> granicus.if.org Git - zfs/commitdiff
Improve VERIFY() error in dmu_write()
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 3 Oct 2014 23:24:34 +0000 (16:24 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 8 Oct 2014 16:18:14 +0000 (09:18 -0700)
This is a debug patch designed to ensure an error code is logged
to the console when this VERIFY() is hit.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Ned Bass <bass6@llnl.gov>
Issue #1440

module/zfs/dmu.c

index a6fe4fb3dcec350a25b390296196e384fe5d57a5..b2def0d80421444aa75e02bb59b0e3ca58bf10c3 100644 (file)
@@ -814,7 +814,7 @@ dmu_write(objset_t *os, uint64_t object, uint64_t offset, uint64_t size,
        if (size == 0)
                return;
 
-       VERIFY(0 == dmu_buf_hold_array(os, object, offset, size,
+       VERIFY0(dmu_buf_hold_array(os, object, offset, size,
            FALSE, FTAG, &numbufs, &dbp));
 
        for (i = 0; i < numbufs; i++) {