From 15fa0c272bfe18e56b2ea900e39bb205ab2e4dd9 Mon Sep 17 00:00:00 2001 From: Tao Ma Date: Wed, 3 Sep 2008 01:57:14 +0800 Subject: [PATCH] --- yaml --- r: 109750 b: refs/heads/master c: 0e116227a01580acf47437adba3afadf21b6bd5f h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/ocfs2/aops.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index e91212ae6ce7..51c03451cc58 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: adee14b2e1557d0a8559f29681732d05a89dfc35 +refs/heads/master: 0e116227a01580acf47437adba3afadf21b6bd5f diff --git a/trunk/fs/ocfs2/aops.c b/trunk/fs/ocfs2/aops.c index 506c24fb5078..a53da1466277 100644 --- a/trunk/fs/ocfs2/aops.c +++ b/trunk/fs/ocfs2/aops.c @@ -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,