ext4: make block group checksums use metadata_csum algorithm
authorDarrick J. Wong <djwong@us.ibm.com>
Sun, 29 Apr 2012 22:45:10 +0000 (18:45 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Apr 2012 22:45:10 +0000 (18:45 -0400)
commitfeb0ab32a57e4e6c8b24f6fb68f0ce08efe4603c
tree6438fc46013c2f5d60e78060c66e2809c6056f1a
parentcc8e94fd126ab2d2e4bcb1b65c7316196f0cec8c
ext4: make block group checksums use metadata_csum algorithm

metadata_csum supersedes uninit_bg.  Convert the ROCOMPAT uninit_bg
flag check to a helper function that covers both, and make the
checksum calculation algorithm use either crc16 or the metadata_csum
chosen algorithm depending on which flag is set.  Print a warning if
we try to mount a filesystem with both feature flags set.

Signed-off-by: Darrick J. Wong <djwong@us.ibm.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/balloc.c
fs/ext4/ext4.h
fs/ext4/ialloc.c
fs/ext4/inode.c
fs/ext4/mballoc.c
fs/ext4/resize.c
fs/ext4/super.c