ocfs2: Make ocfs2_extent_tree get/put instead of alloc.
authorJoel Becker <joel.becker@oracle.com>
Wed, 20 Aug 2008 23:48:35 +0000 (16:48 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 13 Oct 2008 23:57:04 +0000 (16:57 -0700)
commitdc0ce61af418305afa7e0d05d86ab334e0daabf7
tree7122bafdcb29a77cd65e34a600d3df76b9e165fe
parentce1d9ea621291ed5e985d6677278c6bb20d96a40
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 <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/alloc.c