]> git.baikalelectronics.ru Git - kernel.git/commit
Ocfs2/move_extents: move a range of extent.
authorTristan Ye <tristan.ye@oracle.com>
Fri, 18 Mar 2011 06:35:33 +0000 (14:35 +0800)
committerTristan Ye <tristan.ye@oracle.com>
Wed, 25 May 2011 07:17:09 +0000 (15:17 +0800)
commit03714ace3fa02be5b209db07e6320717818cd1c3
treef12071d774d6f7d89480ee87a987cbca1687f49c
parent3d7981734b0d28c016b9ed4d32388204966948b7
Ocfs2/move_extents: move a range of extent.

The moving range of __ocfs2_move_extent() was within one extent always, it
consists following parts:

1. Duplicates the clusters in pages to new_blkoffset, where extent to be moved.

2. Split the original extent with new extent, coalecse the nearby extents if possible.

3. Append old clusters to truncate log, or decrease_refcount if the extent was refcounted.

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