]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita107cf500cfc88b68118f5298ccfc9c6a1878906
tree3e97807c2af11e495faa5ec329de37b3c3b0b595
parent84123843ae8b5d0cb87e891102c7500b3099b51f
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