]> git.karo-electronics.de Git - karo-tx-linux.git/commit
jbd2: move superblock checksum calculation to jbd2_write_superblock()
authorTheodore Ts'o <tytso@mit.edu>
Tue, 18 Jun 2013 15:53:29 +0000 (11:53 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 18 Jun 2013 15:53:29 +0000 (11:53 -0400)
commitaad0757b3ffa0ba476037c99c8cfcd3bd77338f6
tree0cb2e360c1512a2cddd05dda666725df411cb768
parent7d3c788cf8367fb1f23cdb05aa99726e52657761
jbd2: move superblock checksum calculation to jbd2_write_superblock()

Some of the functions which modify the jbd2 superblock were not
updating the checksum before calling jbd2_write_superblock().  Move
the call to jbd2_superblock_csum_set() to jbd2_write_superblock(), so
that the checksum is calculated consistently.

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Cc: Darrick J. Wong <darrick.wong@oracle.com>
Cc: stable@vger.kernel.org
fs/jbd2/journal.c