]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit95366f9e51cb3b75b4c391af5019c05590a4b73c
tree6438fc46013c2f5d60e78060c66e2809c6056f1a
parent5472d7abf8e636628b7c1784286e30eef0961a54
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