Skip to contentSkip to conversation

Ocfs2 regression fix

PATCH New Mark Fasheh 1 participant 1 message Sep 10, 2008 OCFS2

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Ocfs2 regression fix

Please pull from 'upstream-linus' branch of
git://git.kernel.org/pub/scm/linux/kernel/git/mfasheh/ocfs2.git upstream-linus

to receive the following updates:

 fs/ocfs2/aops.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Tao Ma (1):
ocfs2: Fix a bug in direct IO read.

fs/ocfs2/aops.c +1 -1
index 506c24f..a53da14 100644
@@ -594,7 +594,7 @@ static int ocfs2_direct_IO_get_blocks(struct inode *inode, sector_t iblock,
 		goto bail;
 	}
 
-	if (!ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb)) && !p_blkno) {
+	if (!ocfs2_sparse_alloc(OCFS2_SB(inode->i_sb)) && !p_blkno && create) {
 		ocfs2_error(inode->i_sb,
 			    "Inode %llu has a hole at block %llu\n",
 			    (unsigned long long)OCFS2_I(inode)->ip_blkno,