summaryrefslogtreecommitdiff
path: root/usr/src
diff options
context:
space:
mode:
authorDavid Schwartz <dschwartz783@gmail.com>2016-02-09 11:07:15 -0800
committerMatthew Ahrens <mahrens@delphix.com>2016-02-09 12:21:44 -0800
commitd189620258b3c9b0e2f7e2104840be2eee7c68e5 (patch)
treeff78c20140377e9cfdbf47fcb05f763729a625d0 /usr/src
parent5f7a8e6d750cb070a3347f045201c6206caee6aa (diff)
downloadillumos-joyent-d189620258b3c9b0e2f7e2104840be2eee7c68e5.tar.gz
6637 replacing "dontclose" with "should_close"
Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Prakash Surya <prakash.surya@delphix.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src')
-rw-r--r--usr/src/cmd/zfs/zfs_iter.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr/src/cmd/zfs/zfs_iter.c b/usr/src/cmd/zfs/zfs_iter.c
index 645524061c..3581a4715e 100644
--- a/usr/src/cmd/zfs/zfs_iter.c
+++ b/usr/src/cmd/zfs/zfs_iter.c
@@ -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 *data)
}
}
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 *data)
cb->cb_depth--;
}
- if (!dontclose)
+ if (should_close)
zfs_close(zhp);
return (0);