]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[GFS2] Add a function to interate over an extent
authorSteven Whitehouse <swhiteho@redhat.com>
Fri, 8 Feb 2008 13:18:11 +0000 (13:18 +0000)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 31 Mar 2008 09:40:53 +0000 (10:40 +0100)
commit30cbf189cd2a1ba13ff3c8c8ee2103dbdb18578a
tree5d3a3e54850f021abf3ccf43879b692025610cb1
parentc85a665f064863cc8a2fe88e5f1eb4def5446e90
[GFS2] Add a function to interate over an extent

This adds a function (currently the only use is during mapping
of already allocated blocks, but watch this space) which iterates
over a number of pointers in a block and returns the extent length.

If the initial pointer is 0 (i.e. unallocated) it will return the
number of unallocated blocks in the extent. If the initial pointer
is allocated, then it returns the number of contiguously allocated
blocks in the extent.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/bmap.c