Ocfs2/move_extents: helper to calculate the defraging length in one run.
authorTristan Ye <tristan.ye@oracle.com>
Fri, 18 Mar 2011 06:35:40 +0000 (14:35 +0800)
committerTristan Ye <tristan.ye@oracle.com>
Wed, 25 May 2011 07:17:12 +0000 (15:17 +0800)
commitee16cc037e255801892481a2d0b7c1fff2adf1aa
tree00ec3109caf8becea9da524282bf66469361ed7c
parente08477176d5575493ba4c30041245c34f2737ad4
Ocfs2/move_extents: helper to calculate the defraging length in one run.

The helper is to calculate the defrag length in one run according to a threshold,
it will proceed doing defragmentation until the threshold was meet, and skip a
LARGE extent if any.

Signed-off-by: Tristan Ye <tristan.ye@oracle.com>
fs/ocfs2/move_extents.c