From: Joel Becker Date: Thu, 21 Aug 2008 00:09:42 +0000 (-0700) Subject: ocfs2: Use struct ocfs2_extent_tree in ocfs2_num_free_extents(). X-Git-Tag: v2.6.28-rc1~572^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1c25d93a4a27c90c3ae33f9e724f7b67783d68d1;p=pandora-kernel.git 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 Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed