Btrfs: close devices on all error paths in open_ctree()
authorIlya Dryomov <idryomov@gmail.com>
Wed, 9 Nov 2011 11:26:37 +0000 (13:26 +0200)
committerIlya Dryomov <idryomov@gmail.com>
Wed, 9 Nov 2011 20:53:38 +0000 (22:53 +0200)
Fix a bug introduced by 7e662854 where we would leave devices busy on
certain error paths in open_ctree().  fs_info is guaranteed to be
non-NULL now so it's safe to dereference it on all error paths.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
fs/btrfs/disk-io.c

Simple merge