Updated to 2.6.32.27
/fs/ocfs2/inode.c
blob:4c827d86547440bcbff79b54780cebc1cb1484a2 -> blob:3fcb47959d886bf6acac096cc653194f16aba243
--- fs/ocfs2/inode.c
+++ fs/ocfs2/inode.c
@@ -485,7 +485,11 @@ static int ocfs2_read_locked_inode(struc
OCFS2_BH_IGNORE_CACHE);
} else {
status = ocfs2_read_blocks_sync(osb, args->fi_blkno, 1, &bh);
- if (!status)
+ /*
+ * If buffer is in jbd, then its checksum may not have been
+ * computed as yet.
+ */
+ if (!status && !buffer_jbd(bh))
status = ocfs2_validate_inode_block(osb->sb, bh);
}
if (status < 0) {