jbd2: free bh when descriptor block checksum fails
authorDarrick J. Wong <darrick.wong@oracle.com>
Tue, 16 Sep 2014 18:43:09 +0000 (14:43 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Tue, 16 Sep 2014 18:43:09 +0000 (14:43 -0400)
commit064d83892e9ba547f7d4eae22cbca066d95210ce
treecd936264dcaf940ffdb2d496f6c05b2287610b06
parenta0626e75954078cfacddb00a4545dde821170bc5
jbd2: free bh when descriptor block checksum fails

Free the buffer head if the journal descriptor block fails checksum
verification.

This is the jbd2 port of the e2fsprogs patch "e2fsck: free bh on csum
verify error in do_one_pass".

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