]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:58 +0000 (21:20 -0500)
commitc57950d775cd1127e775c24b253138d6b4e2a420
tree3d49efe46af0ef84f6a156ef85c3045b3db60444
parent0e11d850b44a16a30da9c271a67facc132db5d74
Btrfs: close devices on all error paths in open_ctree()

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>
(cherry picked from commit 586e46e2813c589d26258a599580421fb6fb576b)
fs/btrfs/disk-io.c