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)
commitd24a7a439a329b60f8e168c03e80566519e09be2
treea1e46fcf0cbe16e9338164da9442447a84872dc2
parent0d95326d9bd39f6eae80b91392b308c5fa8b1a0f
GFS2: Combine transaction from gfs2_dir_exhash_dealloc

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>
fs/gfs2/dir.c
This page took 0.026042 seconds and 5 git commands to generate.