commit | dc0ce61af418305afa7e0d05d86ab334e0daabf7 | [log] [tgz] |
---|---|---|
author | Joel Becker <joel.becker@oracle.com> | Wed Aug 20 16:48:35 2008 -0700 |
committer | Mark Fasheh <mfasheh@suse.com> | Mon Oct 13 16:57:04 2008 -0700 |
tree | 7122bafdcb29a77cd65e34a600d3df76b9e165fe | |
parent | ce1d9ea621291ed5e985d6677278c6bb20d96a40 [diff] |
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>