diff options
author | Darrick J. Wong <djwong@us.ibm.com> | 2012-04-30 02:29:10 +0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2012-04-30 02:29:10 +0400 |
commit | a9c4731780544d52b243bf46e4dd635c67fa9f84 (patch) | |
tree | dc735f2f59fa2107e8fed8e3d26f259557e34008 /fs/ext4/inode.c | |
parent | 0441984a3398970ab4820410b9cf4ff85bf3a6b0 (diff) | |
download | linux-a9c4731780544d52b243bf46e4dd635c67fa9f84.tar.xz |
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>
Diffstat (limited to 'fs/ext4/inode.c')
-rw-r--r-- | fs/ext4/inode.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ext4/inode.c b/fs/ext4/inode.c index c77b0bd2c711..8bc21ecc1df5 100644 --- a/fs/ext4/inode.c +++ b/fs/ext4/inode.c @@ -3936,7 +3936,7 @@ static int ext4_do_update_inode(handle_t *handle, EXT4_SET_RO_COMPAT_FEATURE(sb, EXT4_FEATURE_RO_COMPAT_LARGE_FILE); ext4_handle_sync(handle); - err = ext4_handle_dirty_super(handle, sb); + err = ext4_handle_dirty_super_now(handle, sb); } } raw_inode->i_generation = cpu_to_le32(inode->i_generation); |