ocfs2: turn __ocfs2_remove_inode_range() into ocfs2_remove_btree_range()
authorMark Fasheh <mfasheh@suse.com>
Wed, 12 Nov 2008 23:16:38 +0000 (15:16 -0800)
committerMark Fasheh <mfasheh@suse.com>
Mon, 5 Jan 2009 16:34:19 +0000 (08:34 -0800)
commitfecc01126d7a244b7e9b563c80663ffdca35343b
treedbc9144a0f4b6e6997928b2fa2ddeb483f8fd2d7
parent85db90e77806d48a19fda77dabe8897d369a1710
ocfs2: turn __ocfs2_remove_inode_range() into ocfs2_remove_btree_range()

This patch genericizes the high level handling of extent removal.
ocfs2_remove_btree_range() is nearly identical to
__ocfs2_remove_inode_range(), except that extent tree operations have been
used where necessary. We update ocfs2_remove_inode_range() to use the
generic helper. Now extent tree based structures have an easy way to
truncate ranges.

Signed-off-by: Mark Fasheh <mfasheh@suse.com>
Acked-by: Joel Becker <joel.becker@oracle.com>
fs/ocfs2/alloc.c
fs/ocfs2/alloc.h
fs/ocfs2/file.c