jbd2: fix block tag checksum verification brokenness
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 28 May 2013 11:31:59 +0000 (07:31 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 28 May 2013 11:31:59 +0000 (07:31 -0400)
commiteee06c56784496805b198964c59fa8cd7c00bf48
treecbdfeadc9a0ee81b83ef012f81dcae1acb0f660f
parent5d9cf9c6254ddc551fb51072f59dfae60e579736
jbd2: fix block tag checksum verification brokenness

Al Viro complained of a ton of bogosity with regards to the jbd2 block
tag header checksum.  This one checksum is 16 bits, so cut off the
upper 16 bits and treat it as a 16-bit value and don't mess around
with be32* conversions.  Fortunately metadata checksumming is still
"experimental" and not in a shipping e2fsprogs, so there should be few
users affected by this.

Reported-by: Al Viro <viro@ZenIV.linux.org.uk>
Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com>
fs/jbd2/commit.c
fs/jbd2/recovery.c