From 03d1795fa6f720eafbee821ad37f4343c391cfe4 Mon Sep 17 00:00:00 2001 From: Alexander Stetsenko Date: Wed, 5 Feb 2014 21:34:18 +0400 Subject: [PATCH] 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 --- usr/src/uts/common/fs/zfs/dsl_dataset.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/src/uts/common/fs/zfs/dsl_dataset.c b/usr/src/uts/common/fs/zfs/dsl_dataset.c index 5fa408f1fa..11c5ec80a3 100644 --- a/usr/src/uts/common/fs/zfs/dsl_dataset.c +++ b/usr/src/uts/common/fs/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 @@ -1364,7 +1365,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) -- 2.11.4.GIT