git://git.camperquake.de
/
zfs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix zvol+btrfs hang
[zfs.git]
/
cmd
/
zdb
/
zdb.c
diff --git
a/cmd/zdb/zdb.c
b/cmd/zdb/zdb.c
index
4a36732
..
ce6318e
100644
(file)
--- a/
cmd/zdb/zdb.c
+++ b/
cmd/zdb/zdb.c
@@
-698,7
+698,9
@@
dump_ddt(ddt_t *ddt, enum ddt_type type, enum ddt_class class)
return;
ASSERT(error == 0);
return;
ASSERT(error == 0);
- if ((count = ddt_object_count(ddt, type, class)) == 0)
+ error = ddt_object_count(ddt, type, class, &count);
+ ASSERT(error == 0);
+ if (count == 0)
return;
dspace = doi.doi_physical_blocks_512 << 9;
return;
dspace = doi.doi_physical_blocks_512 << 9;