btrfs-progs: fix close of error fd in scrub cancel
authorEric Sandeen <sandeen@redhat.com>
Mon, 25 Feb 2013 22:54:40 +0000 (16:54 -0600)
committerDavid Sterba <dsterba@suse.cz>
Wed, 27 Feb 2013 13:39:37 +0000 (14:39 +0100)
commit5eaeb577b563620f41735e0064d55ae41e969e78
treedea0f7bb13028d1b4bc659f9e7b190abc1c8c266
parent67c631329a0207476f9342843601b1ad633687f7
btrfs-progs: fix close of error fd in scrub cancel

If we retry opening the mountpoint and fail, we'll call
close on a filehandle w/ value -1.  Rearrange so the
retry uses the same open and same error handling.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
cmds-scrub.c