btrfs: undo writable superblocke when sprouting fails
authorAnand Jain <anand.jain@oracle.com>
Thu, 28 Sep 2017 06:51:09 +0000 (14:51 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:58 +0000 (12:27 +0100)
commit0af2c4bf5a012a40a2f9230458087d7f068339d0
tree3e97807c2af11e495faa5ec329de37b3c3b0b595
parent4b865cab96fe2a30ed512cf667b354bd291b3b0a
btrfs: undo writable superblocke when sprouting fails

When new device is being added to seed FS, seed FS is marked writable,
but when we fail to bring in the new device, we missed to undo the
writable part. This patch fixes it.

Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Nikolay Borisov <nborisov@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/volumes.c