Skip to content

Commit

Permalink
6637 replacing "dontclose" with "should_close"
Browse files Browse the repository at this point in the history
Reviewed by: Matthew Ahrens <[email protected]>
Reviewed by: Prakash Surya <[email protected]>
Approved by: Robert Mustacchi <[email protected]>
  • Loading branch information
dschwartz783 authored and ahrens committed Feb 9, 2016
1 parent 5f7a8e6 commit d189620
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions usr/src/cmd/zfs/zfs_iter.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
}
Expand All @@ -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);
Expand Down

0 comments on commit d189620

Please sign in to comment.