aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorRobert Peterson <rpeterso@redhat.com>2007-06-20 09:34:06 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2007-07-09 03:23:52 -0400
commit773ed1a044adc868036dee1722b8bca6ce5923e2 (patch)
treedfa488af453c3afde1f8fa50d8771502808722f5 /fs
parenteaf5bd3cac92126e5825c6ebc10bee0fba35d555 (diff)
[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 <rpeterso@redhat.com> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs')
-rw-r--r--fs/gfs2/lops.c6
1 files changed, 4 insertions, 2 deletions
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)
472 return; 472 return;
473 } 473 }
474 tr->tr_touched = 1; 474 tr->tr_touched = 1;
475 tr->tr_num_buf++; 475 if (gfs2_is_jdata(ip)) {
476 list_add(&bd->bd_list_tr, &tr->tr_list_buf); 476 tr->tr_num_buf++;
477 list_add(&bd->bd_list_tr, &tr->tr_list_buf);
478 }
477 gfs2_log_unlock(sdp); 479 gfs2_log_unlock(sdp);
478 if (!list_empty(&le->le_list)) 480 if (!list_empty(&le->le_list))
479 return; 481 return;