Ocfs2/move_extents: lock allocators and reserve metadata blocks and data clusters...
authorTristan Ye <tristan.ye@oracle.com>
Fri, 18 Mar 2011 06:35:32 +0000 (14:35 +0800)
committerTristan Ye <tristan.ye@oracle.com>
Wed, 25 May 2011 07:17:09 +0000 (15:17 +0800)
commitde474ee8bbc315b0e6772cebdb24b335f82cf95d
tree04426cf07865f7f456eb2f8154d96b2ef403cee9
parent028ba5df63fa9fc18045bc1e9b48cdd43727e1c5
Ocfs2/move_extents: lock allocators and reserve metadata blocks and data clusters for extents moving.

ocfs2_lock_allocators_move_extents() was like the common ocfs2_lock_allocators(),
to lock metadata and data alloctors during extents moving, reserve appropriate
metadata blocks and data clusters, also performa a best- effort to calculate the
credits for journal transaction in one run of movement.

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