svn commit: r296532 - vendor/illumos/dist/cmd/zfs
Alexander Motin
mav at FreeBSD.org
Tue Mar 8 18:31:51 UTC 2016
Author: mav
Date: Tue Mar 8 18:31:49 2016
New Revision: 296532
URL: https://svnweb.freebsd.org/changeset/base/296532
Log:
6637 replacing "dontclose" with "should_close"
Reviewed by: Matthew Ahrens <mahrens at delphix.com>
Reviewed by: Prakash Surya <prakash.surya at delphix.com>
Approved by: Robert Mustacchi <rm at joyent.com>
Author: David Schwartz <dschwartz783 at gmail.com>
illumos/illumos-gate at d189620258b3c9b0e2f7e2104840be2eee7c68e5
Modified:
vendor/illumos/dist/cmd/zfs/zfs_iter.c
Modified: vendor/illumos/dist/cmd/zfs/zfs_iter.c
==============================================================================
--- vendor/illumos/dist/cmd/zfs/zfs_iter.c Tue Mar 8 18:31:26 2016 (r296531)
+++ vendor/illumos/dist/cmd/zfs/zfs_iter.c Tue Mar 8 18:31:49 2016 (r296532)
@@ -91,7 +91,7 @@ static int
zfs_callback(zfs_handle_t *zhp, void *data)
{
callback_data_t *cb = data;
- boolean_t dontclose = B_FALSE;
+ boolean_t should_close = B_TRUE;
boolean_t include_snaps = zfs_include_snapshots(zhp, cb);
boolean_t include_bmarks = (cb->cb_types & ZFS_TYPE_BOOKMARK);
@@ -119,7 +119,7 @@ zfs_callback(zfs_handle_t *zhp, void *da
}
}
uu_avl_insert(cb->cb_avl, node, idx);
- dontclose = B_TRUE;
+ should_close = B_FALSE;
} else {
free(node);
}
@@ -143,7 +143,7 @@ zfs_callback(zfs_handle_t *zhp, void *da
cb->cb_depth--;
}
- if (!dontclose)
+ if (should_close)
zfs_close(zhp);
return (0);
More information about the svn-src-all
mailing list