aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ocfs2/namei.c
diff options
context:
space:
mode:
authorMark Fasheh <mark.fasheh@oracle.com>2007-03-09 19:26:50 -0500
committerMark Fasheh <mark.fasheh@oracle.com>2007-04-26 18:02:45 -0400
commit4f902c37727bbedbc0508a1477874c58ddcc9af8 (patch)
tree841b35387cfea5d2518c258c4de6ef868948369b /fs/ocfs2/namei.c
parent49cb8d2d496ce06869ccca2ab368ed6b0b5b979d (diff)
ocfs2: Fix extent lookup to return true size of holes
Initially, we had wired things to return a size '1' of holes. Cook up a small amount of code to find the next extent and calculate the number of clusters between the virtual offset and the next allocated extent. Signed-off-by: Mark Fasheh <mark.fasheh@oracle.com>
Diffstat (limited to 'fs/ocfs2/namei.c')
-rw-r--r--fs/ocfs2/namei.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ocfs2/namei.c b/fs/ocfs2/namei.c
index 395859edb51f..9bdbe4ae92f8 100644
--- a/fs/ocfs2/namei.c
+++ b/fs/ocfs2/namei.c
@@ -1483,8 +1483,7 @@ static int ocfs2_create_symlink_data(struct ocfs2_super *osb,
1483 struct buffer_head **bhs = NULL; 1483 struct buffer_head **bhs = NULL;
1484 const char *c; 1484 const char *c;
1485 struct super_block *sb = osb->sb; 1485 struct super_block *sb = osb->sb;
1486 u64 p_blkno; 1486 u64 p_blkno, p_blocks;
1487 int p_blocks;
1488 int virtual, blocks, status, i, bytes_left; 1487 int virtual, blocks, status, i, bytes_left;
1489 1488
1490 bytes_left = i_size_read(inode) + 1; 1489 bytes_left = i_size_read(inode) + 1;