GFS2: Combine transaction from gfs2_dir_exhash_dealloc
authorBob Peterson <rpeterso@redhat.com>
Tue, 22 Mar 2011 17:54:03 +0000 (13:54 -0400)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 20 Apr 2011 07:53:56 +0000 (08:53 +0100)
At the end of function gfs2_dir_exhash_dealloc, it was setting the dinode
type to "file" to prevent directory corruption in case of a crash.
It was doing so in its own journal transaction.  This patch makes the
change occur when the last call is make to leaf_dealloc, since it needs
to rewrite the directory dinode at that time anyway.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>

No differences found