aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/btrfs/disk-io.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index 6d642e487229..0f75a01f69e2 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3416,8 +3416,10 @@ static int write_all_supers(struct btrfs_root *root, int max_mirrors)
3416 printk(KERN_ERR "btrfs: %d errors while writing supers\n", 3416 printk(KERN_ERR "btrfs: %d errors while writing supers\n",
3417 total_errors); 3417 total_errors);
3418 3418
3419 /* This shouldn't happen. FUA is masked off if unsupported */ 3419 /* FUA is masked off if unsupported and can't be the reason */
3420 BUG(); 3420 btrfs_error(root->fs_info, -EIO,
3421 "%d errors while writing supers", total_errors);
3422 return -EIO;
3421 } 3423 }
3422 3424
3423 total_errors = 0; 3425 total_errors = 0;