From: Steven Whitehouse Date: Thu, 16 Aug 2007 16:08:20 +0000 (+0100) Subject: [GFS2] Add a missing gfs2_trans_add_bh() X-Git-Tag: firefly_0821_release~26021^2~28 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=382e6e256b0cb1a84a45a520cef75d1b8ff44663;p=firefly-linux-kernel-4.4.55.git [GFS2] Add a missing gfs2_trans_add_bh() 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 Cc: Wendy Cheng --- diff --git a/fs/gfs2/dir.c b/fs/gfs2/dir.c index 2beb2f401aa2..08c6dd0c6713 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);