]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
jbd2: move superblock checksum calculation to jbd2_write_superblock()
authorTheodore Ts'o <tytso@mit.edu>
Mon, 1 Jul 2013 12:12:38 +0000 (08:12 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 1 Jul 2013 12:12:38 +0000 (08:12 -0400)
commitfe52d17cdd343ac43c85cf72940a58865b9d3bfb
tree564fcb912a322ae9d1d2e50763210bda68bccede
parentaeb2817a4ea99f62532adf3377be3b282d3bda12
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