ocfs2: Add an insertion check to ocfs2_extent_tree_operations.
authorJoel Becker <joel.becker@oracle.com>
Thu, 21 Aug 2008 01:32:45 +0000 (18:32 -0700)
committerMark Fasheh <mfasheh@suse.com>
Mon, 13 Oct 2008 23:57:05 +0000 (16:57 -0700)
commit1e61ee79e2a96f62c007486677319814ce621c3c
tree50e966441431ec036649dac3ebd17d1452937f26
parent1a09f556e5415a29cdddaf9a6ebf474194161cf3
ocfs2: Add an insertion check to ocfs2_extent_tree_operations.

A couple places check an extent_tree for a valid inode.  We move that
out to add an eo_insert_check() operation.  It can be called from
ocfs2_insert_extent() and elsewhere.

We also have the wrapper calls ocfs2_et_insert_check() and
ocfs2_et_sanity_check() ignore NULL ops.  That way we don't have to
provide useless operations for xattr types.

Signed-off-by: Joel Becker <joel.becker@oracle.com>
Signed-off-by: Mark Fasheh <mfasheh@suse.com>
fs/ocfs2/alloc.c