Btrfs: get rid of one BUG() in write_all_supers()
authorStefan Behrens <sbehrens@giantdisaster.de>
Fri, 9 Aug 2013 15:08:40 +0000 (17:08 +0200)
committerChris Mason <chris.mason@fusionio.com>
Sun, 1 Sep 2013 12:16:28 +0000 (08:16 -0400)
commit9d565ba4330db102127f19d159609df5c3a375d8
tree996d62436e50a6442b4da37cbc8ff0db460fe3d6
parentb9e9a6cbc6d25b89d8007e5a680319e07921ead8
Btrfs: get rid of one BUG() in write_all_supers()

The second round uses btrfs_error() and return -EIO, the first round
can handle write errors the same way.

Signed-off-by: Stefan Behrens <sbehrens@giantdisaster.de>
Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Signed-off-by: Chris Mason <chris.mason@fusionio.com>
fs/btrfs/disk-io.c