From e6659763c6069af794d66997a7f992dcdffa21b0 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 3 Oct 2014 16:24:34 -0700 Subject: [PATCH] Improve VERIFY() error in dmu_write() 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 Signed-off-by: Ned Bass Issue #1440 --- module/zfs/dmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/dmu.c b/module/zfs/dmu.c index a6fe4fb3d..b2def0d80 100644 --- a/module/zfs/dmu.c +++ b/module/zfs/dmu.c @@ -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++) {