ocfs2: Fix extent lookup to return true size of holes
authorMark Fasheh <mark.fasheh@oracle.com>
Sat, 10 Mar 2007 00:26:50 +0000 (16:26 -0800)
committerMark Fasheh <mark.fasheh@oracle.com>
Thu, 26 Apr 2007 22:02:45 +0000 (15:02 -0700)
commit4f902c37727bbedbc0508a1477874c58ddcc9af8
tree841b35387cfea5d2518c258c4de6ef868948369b
parent49cb8d2d496ce06869ccca2ab368ed6b0b5b979d
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>
fs/ocfs2/aops.c
fs/ocfs2/extent_map.c
fs/ocfs2/extent_map.h
fs/ocfs2/journal.c
fs/ocfs2/namei.c