From da34dbd14936a4c6183be14b7db09f0d6e49cf09 Mon Sep 17 00:00:00 2001 From: Zhao Lei Date: Mon, 26 Oct 2015 18:28:19 +0800 Subject: 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 Signed-off-by: David Sterba --- cmds-replace.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'cmds-replace.c') diff --git a/cmds-replace.c b/cmds-replace.c index 4e0e947..9ba256d 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; } -- cgit v1.2.1