]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
[GFS2] Add a missing gfs2_trans_add_bh()
authorSteven Whitehouse <swhiteho@redhat.com>
Thu, 16 Aug 2007 16:08:20 +0000 (17:08 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Wed, 10 Oct 2007 07:55:32 +0000 (08:55 +0100)
This was missing from the dir_split_leaf() function although in
most cases its not a problem due to other functions having
already previously called gfs2_trans_add_bh. This makes certain
that it is correct.

Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Cc: Wendy Cheng <wcheng@redhat.com>
fs/gfs2/dir.c

index 2beb2f401aa24a2b23cf511d813d21db06e521b7..08c6dd0c67138b6607bf2839fec61f35aae06baf 100644 (file)
@@ -1043,6 +1043,7 @@ static int dir_split_leaf(struct inode *inode, const struct qstr *name)
 
        error = gfs2_meta_inode_buffer(dip, &dibh);
        if (!gfs2_assert_withdraw(GFS2_SB(&dip->i_inode), !error)) {
+               gfs2_trans_add_bh(dip->i_gl, dibh, 1);
                dip->i_di.di_blocks++;
                gfs2_set_inode_blocks(&dip->i_inode);
                gfs2_dinode_out(dip, dibh->b_data);