diff options
author | Zhao Lei <zhaolei@cn.fujitsu.com> | 2015-10-26 18:28:19 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2015-11-02 09:35:07 +0100 |
commit | da34dbd14936a4c6183be14b7db09f0d6e49cf09 (patch) | |
tree | 99913ee45b3b13e48eff2d321811d60454e54b42 /cmds-replace.c | |
parent | 30fd6f2e92695c355c8f76b8887cd4fade60cdac (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-replace.c')
-rw-r--r-- | cmds-replace.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/cmds-replace.c b/cmds-replace.c index 4e0e9472..9ba256d3 100644 --- a/cmds-replace.c +++ b/cmds-replace.c @@ -309,7 +309,6 @@ static int cmd_replace_start(int argc, char **argv) } } close_file_or_dir(fdmnt, dirstream); - btrfs_close_all_devices(); return 0; leave_with_error: @@ -319,7 +318,6 @@ leave_with_error: close(fdmnt); if (fddstdev != -1) close(fddstdev); - btrfs_close_all_devices(); return 1; } |