]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ocfs2: Fix incorrect checksum validation error
authorSunil Mushran <sunil.mushran@oracle.com>
Thu, 12 Aug 2010 23:24:26 +0000 (16:24 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Sep 2010 20:36:17 +0000 (13:36 -0700)
commit1e34225fcdadc793e910d5edfd9c2a48930d42d4
tree2d57ef656def2878bf58da6fb75df1c8610fdc03
parent5f555d8ad4b3e1cd500f6dac90b317c61695a19a
ocfs2: Fix incorrect checksum validation error

commit f5ce5a08a40f2086435858ddc80cb40394b082eb upstream.

For local mounts, ocfs2_read_locked_inode() calls ocfs2_read_blocks_sync() to
read the inode off the disk. The latter first checks to see if that block is
cached in the journal, and, if so, returns that block. That is ok.

But ocfs2_read_locked_inode() goes wrong when it tries to validate the checksum
of such blocks. Blocks that are cached in the journal may not have had their
checksum computed as yet. We should not validate the checksums of such blocks.

Fixes ossbz#1282
http://oss.oracle.com/bugzilla/show_bug.cgi?id=1282

Signed-off-by: Sunil Mushran <sunil.mushran@oracle.com>
Singed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ocfs2/inode.c