GFS2: pass leaf_bh into leaf_dealloc
authorBob Peterson <rpeterso@redhat.com>
Tue, 22 Mar 2011 17:55:23 +0000 (13:55 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 20 Apr 2011 07:54:26 +0000 (08:54 +0100)
commitec038c826b5c3c163ad1673390f10e869020c28c
tree11d97ed7a40033e1bf113e3ca7fa28e4f22bfe0d
parentd24a7a439a329b60f8e168c03e80566519e09be2
GFS2: pass leaf_bh into leaf_dealloc

Function foreach_leaf used to look up the leaf block address and get
a buffer_head.  Then it would call leaf_dealloc which did the same
lookup.  This patch combines the two operations by making foreach_leaf
pass the leaf bh to leaf_dealloc.

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