summaryrefslogtreecommitdiff
path: root/cmds-check.c
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-10-26 18:28:19 +0800
committerDavid Sterba <dsterba@suse.com>2015-11-02 09:35:07 +0100
commitda34dbd14936a4c6183be14b7db09f0d6e49cf09 (patch)
tree99913ee45b3b13e48eff2d321811d60454e54b42 /cmds-check.c
parent30fd6f2e92695c355c8f76b8887cd4fade60cdac (diff)
btrfs-progs: Remove all btrfs_close_all_devices in sub-command
Since we have btrfs_close_all_devices() in btrfs's main entrance, it is not necessary to call btrfs_close_all_devices() separately in each sub-command. Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-check.c')
-rw-r--r--cmds-check.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmds-check.c b/cmds-check.c
index 4040f7ea..fd661d98 100644
--- a/cmds-check.c
+++ b/cmds-check.c
@@ -9735,7 +9735,6 @@ out:
free_root_recs_tree(&root_cache);
close_out:
close_ctree(root);
- btrfs_close_all_devices();
err_out:
if (ctx.progress_enabled)
task_deinit(ctx.info);