]> Git Repo - linux.git/commit - fs/ocfs2/inode.c
ocfs2: Fix incorrect checksum validation error
authorSunil Mushran <[email protected]>
Thu, 12 Aug 2010 23:24:26 +0000 (16:24 -0700)
committerTao Ma <[email protected]>
Wed, 8 Sep 2010 06:25:54 +0000 (14:25 +0800)
commitf5ce5a08a40f2086435858ddc80cb40394b082eb
treeb8880708bcddc0568b6746a7156b9ff21617750d
parentdc696aced9f09f05b1f927b93f5a7918017a3e49
ocfs2: Fix incorrect checksum validation error

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 <[email protected]>
Cc: [email protected]
Singed-off-by: Tao Ma <[email protected]>
fs/ocfs2/inode.c
This page took 0.054468 seconds and 4 git commands to generate.