summaryrefslogtreecommitdiffstats
path: root/module/zfs/dmu.c
diff options
context:
space:
mode:
authorBrian Behlendorf <[email protected]>2014-10-03 16:24:34 -0700
committerBrian Behlendorf <[email protected]>2014-10-08 09:18:14 -0700
commite6659763c6069af794d66997a7f992dcdffa21b0 (patch)
treefe15e5a9e5bc38f679e181003dc2ceee317cc0eb /module/zfs/dmu.c
parent8878261fc9447592844db5f7eb3df9ed3b088871 (diff)
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 <[email protected]> Signed-off-by: Ned Bass <[email protected]> Issue #1440
Diffstat (limited to 'module/zfs/dmu.c')
-rw-r--r--module/zfs/dmu.c2
1 files changed, 1 insertions, 1 deletions
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++) {