[2/2] btrfs: clear the RAID5/6 incompat flag once no longer needed
diff mbox

Message ID 20170329043940.23655-2-kilobyte@angband.pl
State New
Headers show

Commit Message

Adam Borowski March 29, 2017, 4:39 a.m. UTC
There's no known taint on a filesystem that was RAID5/6 once but has been
since converted to something non-experimental.

Signed-off-by: Adam Borowski <kilobyte@angband.pl>
---
 fs/btrfs/disk-io.c | 2 ++
 1 file changed, 2 insertions(+)

Patch
diff mbox

diff --git a/fs/btrfs/disk-io.c b/fs/btrfs/disk-io.c
index a4c3e6628ec1..c720a7bc1b15 100644
--- a/fs/btrfs/disk-io.c
+++ b/fs/btrfs/disk-io.c
@@ -3089,6 +3089,8 @@  int open_ctree(struct super_block *sb,
 	    BTRFS_BLOCK_GROUP_RAID56_MASK) {
 		btrfs_alert(fs_info,
 		"btrfs RAID5/6 is EXPERIMENTAL and has known data-loss bugs");
+	} else {
+		btrfs_clear_fs_incompat(fs_info, RAID56);
 	}
 
 	/*