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>
Showing
- fs/ext4/balloc.c 2 additions, 2 deletionsfs/ext4/balloc.c
- fs/ext4/ext4.h 3 additions, 3 deletionsfs/ext4/ext4.h
- fs/ext4/ialloc.c 7 additions, 10 deletionsfs/ext4/ialloc.c
- fs/ext4/inode.c 1 addition, 2 deletionsfs/ext4/inode.c
- fs/ext4/mballoc.c 3 additions, 3 deletionsfs/ext4/mballoc.c
- fs/ext4/resize.c 3 additions, 6 deletionsfs/ext4/resize.c
- fs/ext4/super.c 57 additions, 24 deletionsfs/ext4/super.c
Loading
Please register or sign in to comment