Skip to content

Commit

Permalink
Illumos #4574 get_clones_stat does not call zap_count in non-debug ke…
Browse files Browse the repository at this point in the history
…rnel

4574 get_clones_stat does not call zap_count in non-debug kernel

Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: Marcel Telka <[email protected]>
Approved by: Gordon Ross <[email protected]>

References:
  https://www.illumos.org/issues/4574
  illumos/illumos-gate@03d1795

Ported-by: Richard Yao <[email protected]>
Signed-off-by: Brian Behlendorf <[email protected]>
Closes #2147
  • Loading branch information
Alexander Stetsenko authored and behlendorf committed Mar 4, 2014
1 parent 13a7ba1 commit 36f92e9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion module/zfs/dsl_dataset.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 <sys/dmu_objset.h>
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit 36f92e9

Please sign in to comment.