]> git.baikalelectronics.ru Git - kernel.git/commit
ocfs2: Use struct ocfs2_extent_tree in ocfs2_num_free_extents().
authorJoel Becker <joel.becker@oracle.com>
Thu, 21 Aug 2008 00:09:42 +0000 (17:09 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 13 Oct 2008 23:57:04 +0000 (16:57 -0700)
commit02930d6e83a8a98aa0c3769b00099909ad200193
treed62c9b19fae527770939748566ce3a31ce0bce53
parenta34bd4f66ca8325ba7833a2d3ca9abe3402b777a
ocfs2: Use struct ocfs2_extent_tree in ocfs2_num_free_extents().

ocfs2_num_free_extents() re-implements the logic of
ocfs2_get_extent_tree().  Now that ocfs2_get_extent_tree() does not
allocate, let's use it in ocfs2_num_free_extents() to simplify the code.

The inode validation code in ocfs2_num_free_extents() is not needed.
All callers are passing in pre-validated inodes.

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