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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 22 Jul 2013 01:21:22 +0000 (18:21 -0700)
commit5f81e313889bcaf53faec9c05a4c92e0b43823f4
treee52b166d3e6ce270e1e9daa80aeb6416d9b86c1c
parent9e8e8fdf3d60235954e1452283b21e955e574b98
jbd2: move superblock checksum calculation to jbd2_write_superblock()

commit fe52d17cdd343ac43c85cf72940a58865b9d3bfb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/jbd2/journal.c