]> git.baikalelectronics.ru Git - kernel.git/commit
ext4: calculate and verify superblock checksum
authorDarrick J. Wong <djwong@us.ibm.com>
Sun, 29 Apr 2012 22:29:10 +0000 (18:29 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sun, 29 Apr 2012 22:29:10 +0000 (18:29 -0400)
commitdaa131cd1c96874b5276860f8e17950b7429e342
treedc735f2f59fa2107e8fed8e3d26f259557e34008
parentddc90d3e9b53c3630343f26ed2e8584c858f85cc
ext4: calculate and verify superblock checksum

Calculate and verify the superblock checksum.  Since the UUID and
block group number are embedded in each copy of the superblock, we
need only checksum the entire block.  Refactor some of the code to
eliminate open-coding of the checksum update call.

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