]> git.karo-electronics.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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 6 Jan 2011 23:07:41 +0000 (18:07 -0500)
commit654a3ffcdf03dc238a23f4572544392516d6daa1
treedd749739d3a2af2771b69c11735a5cebf8f2a443
parent5ba16d7c0e8cc1e32b00c05d08725252f33a1415
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: Paul Gortmaker <paul.gortmaker@windriver.com>
fs/ocfs2/inode.c