From: Robert Peterson Date: Wed, 20 Jun 2007 13:34:06 +0000 (-0500) Subject: [GFS2] Addendum to the journaled file/unmount patch X-Git-Tag: v2.6.23-rc1~1156^2~11 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=773ed1a044adc868036dee1722b8bca6ce5923e2;p=karo-tx-linux.git [GFS2] Addendum to the journaled file/unmount patch This patch is an addendum to the previous journaled file/unmount patch. It fixes a problem discovered during testing. Signed-off-by: Bob Peterson Signed-off-by: Steven Whitehouse --- diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c index dd810ad68cf0..aff70f0698fd 100644 --- a/fs/gfs2/lops.c +++ b/fs/gfs2/lops.c @@ -472,8 +472,10 @@ static void databuf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le) return; } tr->tr_touched = 1; - tr->tr_num_buf++; - list_add(&bd->bd_list_tr, &tr->tr_list_buf); + if (gfs2_is_jdata(ip)) { + tr->tr_num_buf++; + list_add(&bd->bd_list_tr, &tr->tr_list_buf); + } gfs2_log_unlock(sdp); if (!list_empty(&le->le_list)) return;