Btrfs: enhance superblock sanity checks
authorDavid Sterba <dsterba@suse.cz>
Mon, 5 Mar 2012 23:06:18 +0000 (00:06 +0100)
committerChris Mason <chris.mason@oracle.com>
Thu, 29 Mar 2012 00:30:28 +0000 (20:30 -0400)
commitfcd1f065daca593badb7f99d473639cf3b551795
treeb4dda48c9db913270d66344a2787829149b3a2bd
parent914b20070b413ca10f832c45a58b2894990f065f
Btrfs: enhance superblock sanity checks

Validate checksum algorithm during mount and prevent BUG_ON later in
btrfs_super_csum_size.

Signed-off-by: David Sterba <dsterba@suse.cz>
fs/btrfs/disk-io.c