From 36f92e93e5dcd88efd74522ac0efd237168c1dfd Mon Sep 17 00:00:00 2001 From: Alexander Stetsenko Date: Wed, 5 Feb 2014 21:34:18 +0400 Subject: [PATCH] Illumos #4574 get_clones_stat does not call zap_count in non-debug kernel 4574 get_clones_stat does not call zap_count in non-debug kernel Reviewed by: Matthew Ahrens Reviewed by: Marcel Telka Approved by: Gordon Ross References: https://www.illumos.org/issues/4574 illumos/illumos-gate@03d1795fa6f720eafbee821ad37f4343c391cfe4 Ported-by: Richard Yao Signed-off-by: Brian Behlendorf Closes #2147 --- module/zfs/dsl_dataset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/module/zfs/dsl_dataset.c b/module/zfs/dsl_dataset.c index 7c4819bbc..5eb8c0199 100644 --- a/module/zfs/dsl_dataset.c +++ b/module/zfs/dsl_dataset.c @@ -22,6 +22,7 @@ * Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2013 by Delphix. All rights reserved. * Copyright (c) 2012, Joyent, Inc. All rights reserved. + * Copyright (c) 2014 RackTop Systems. */ #include @@ -1371,7 +1372,7 @@ get_clones_stat(dsl_dataset_t *ds, nvlist_t *nv) * Only trust it if it has the right number of entries. */ if (ds->ds_phys->ds_next_clones_obj != 0) { - ASSERT0(zap_count(mos, ds->ds_phys->ds_next_clones_obj, + VERIFY0(zap_count(mos, ds->ds_phys->ds_next_clones_obj, &count)); } if (count != ds->ds_phys->ds_num_children - 1)