Searched hist:dc0ce61a (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/fs/ocfs2/ |
H A D | alloc.c | dc0ce61a Wed Aug 20 18:48:35 CDT 2008 Joel Becker <joel.becker@oracle.com> 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> dc0ce61a Wed Aug 20 18:48:35 CDT 2008 Joel Becker <joel.becker@oracle.com> 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>
|