[PATCH 23/51] [GFS2] Add a missing gfs2_trans_add_bh()

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: swhiteho
Date: Thursday, October 4, 2007 - 1:49 am

From: Steven Whitehouse <swhiteho@redhat.com>

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>

diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c
index 2beb2f4..08c6dd0 100644
--- a/fs/gfs2/dir.c
+++ b/fs/gfs2/dir.c
@@ -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);
-- 
1.5.1.2

-
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[GFS2/DLM] Pre-pull patch posting, swhiteho, (Thu Oct 4, 1:48 am)
[PATCH 17/51] [GFS2] unneeded typecast, swhiteho, (Thu Oct 4, 1:49 am)
[PATCH 23/51] [GFS2] Add a missing gfs2_trans_add_bh(), swhiteho, (Thu Oct 4, 1:49 am)
[PATCH 25/51] [GFS2] Reduce truncate IO traffic, swhiteho, (Thu Oct 4, 1:49 am)
[PATCH 26/51] [DLM] Fix lowcomms socket closing, swhiteho, (Thu Oct 4, 1:49 am)
[GFS2/DLM] Pull request, Steven Whitehouse, (Fri Oct 12, 12:47 am)