]> git.baikalelectronics.ru Git - kernel.git/commit
Ocfs2/move_extents: move/defrag extents within a certain range.
authorTristan Ye <tristan.ye@oracle.com>
Wed, 25 May 2011 06:23:43 +0000 (14:23 +0800)
committerTristan Ye <tristan.ye@oracle.com>
Wed, 25 May 2011 07:17:12 +0000 (15:17 +0800)
commit0b41a675b32a71bd363ca76a90ea25d43fc9e6ed
tree6b906eb22fef78636c7d4db7120370d7715f5aef
parent0206f6e1e5aa2784900af2df6807e912569e3cff
Ocfs2/move_extents: move/defrag extents within a certain range.

the basic logic of moving extents for a file is pretty like punching-hole
sequence, walk the extents within the range as user specified, calculating
an appropriate len to defrag/move, then let ocfs2_defrag/move_extent() to
do the actual moving.

This func ends up setting 'OCFS2_MOVE_EXT_FL_COMPLETE' to userpace if operation
gets done successfully.

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