]> www.infradead.org Git - users/jedix/linux-maple.git/commit
Btrfs: close all bdevs on mount failure
authorIlya Dryomov <idryomov@gmail.com>
Wed, 19 Oct 2011 21:06:20 +0000 (00:06 +0300)
committerChris Mason <chris.mason@oracle.com>
Wed, 16 Nov 2011 02:20:45 +0000 (21:20 -0500)
commit7e0bd4fa758afb0f166c922e9351eaf710daac43
tree67f825bd849f113dd98093e9e631c94ea22f2fa2
parent65d38bcf97a845f2aaf9c45a36385e79e8b50593
Btrfs: close all bdevs on mount failure

Fix a bug introduced by 20b45077.  We have to return EINVAL on mount
failure, but doing that too early in the sequence leaves all of the
devices opened exclusively.  This also fixes an issue where under some
scenarios only a second mount -o degraded <devices> command would
succeed.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 20bcd64934e4eb8f3f90a0dca54fb0ac2edd7795)
fs/btrfs/volumes.c