]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Add support for cross extent block
authorTao Ma <tao.ma@oracle.com>
Wed, 30 Jan 2008 06:21:05 +0000 (14:21 +0800)
committerMark Fasheh <mfasheh@suse.com>
Fri, 18 Apr 2008 15:56:10 +0000 (08:56 -0700)
commit7e30bf5fa48f642fbf6aa386a63b0909191c7c33
treeeb4014d515d3dd23bf70d9cace666f2c85864141
parent4bca5b89c1e0108620d8adc81018d58be754bae1
ocfs2: Add support for cross extent block

In ocfs2_merge_rec_left, when we find the merge extent is "CONTIG_RIGHT"
with the first extent record of the next extent block, we will merge it to
the next extent block and change all the related extent blocks accordingly.

In ocfs2_merge_rec_right, when we find the merge extent is "CONTIG_LEFT"
with the last extent record of the previous extent block, we will merge
it to the prevoius extent block and change all the related extent blocks
accordingly.

As for CONTIG_LEFTRIGHT, we will handle CONTIG_RIGHT first so that when
the index is zero, the merge process will be more efficient and easier.

Signed-off-by: Tao Ma <tao.ma@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/alloc.c