Skip to content

Commit

Permalink
[GFS2] Add a missing gfs2_trans_add_bh()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Steven Whitehouse committed Oct 10, 2007
1 parent bb3b0e3 commit 382e6e2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/gfs2/dir.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 382e6e2

Please sign in to comment.