GFS2: remove *leaf_call_t and simplify leaf_dealloc
authorBob Peterson <rpeterso@redhat.com>
Tue, 22 Mar 2011 17:52:44 +0000 (13:52 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 20 Apr 2011 07:53:35 +0000 (08:53 +0100)
commit0d95326d9bd39f6eae80b91392b308c5fa8b1a0f
treefcb34235afd36e192823295567f08fa05311b190
parent95c8e17f2f00f6af7474fac0e4050a79db6c3cea
GFS2: remove *leaf_call_t and simplify leaf_dealloc

Since foreach_leaf is only called with leaf_dealloc as its only possible
call function, we can simplify the code by making it call leaf_dealloc
directly.  This simplifies the code and eliminates the need for
leaf_call_t, the generic call method.  This is a first small step in
simplifying the directory leaf deallocation code.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
fs/gfs2/dir.c