btrfs: fail mount when sb flag is not in BTRFS_SUPER_FLAG_SUPP
authorAnand Jain <Anand.Jain@oracle.com>
Tue, 9 Jan 2018 01:05:43 +0000 (09:05 +0800)
committerDavid Sterba <dsterba@suse.com>
Mon, 22 Jan 2018 15:08:21 +0000 (16:08 +0100)
commit6f794e3c5c8f8fdd3b5bb20d9ded894e685b5bbe
tree6857edfa54754d03a8aa645326c59dc37e659b8f
parent98820a7e244b17b8a4d9e9d1ff9d3b4e5bfca58b
btrfs: fail mount when sb flag is not in BTRFS_SUPER_FLAG_SUPP

It appears from the original commit [1] that there isn't any design
specific reason not to fail the mount instead of just warning. This
patch will change it to fail.

[1]
 commit 319e4d0661e5323c9f9945f0f8fb5905e5fe74c3
    btrfs: Enhance super validation check

Fixes: 319e4d0661e5323 ("btrfs: Enhance super validation check")
Signed-off-by: Anand Jain <anand.jain@oracle.com>
Reviewed-by: Qu Wenruo <wqu@suse.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c