From: Joel Becker Date: Wed, 20 Aug 2008 23:48:35 +0000 (-0700) Subject: ocfs2: Make ocfs2_extent_tree get/put instead of alloc. X-Git-Tag: v2.6.28-rc1~572^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc0ce61af418305afa7e0d05d86ab334e0daabf7;p=pandora-kernel.git ocfs2: Make ocfs2_extent_tree get/put instead of alloc. Rather than allocating a struct ocfs2_extent_tree, just put it on the stack. Fill it with ocfs2_get_extent_tree() and drop it with ocfs2_put_extent_tree(). Now the callers don't have to ENOMEM, yet still safely ref the root_bh. Signed-off-by: Joel Becker Signed-off-by: Mark Fasheh --- Reading git-diff-tree failed