Skip to contentSkip to conversation

GFS2: Addendum to the journaled file/unmount patch

PATCH New Robert Peterson 2 participants 2 messages Jun 20, 2007 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 GFS2: Addendum to the journaled file/unmount patch

Hi,

This patch is an addendum to the previous journaled file/unmount patch. It fixes a problem discovered during testing.

Regards,

Bob Peterson
Red Hat Cluster Suite

--

 fs/gfs2/lops.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
fs/gfs2/lops.c +4 -2
index dd810ad..aff70f0 100644
@@ -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;
#1 lore raw

PATCH 1/1 GFS2: Addendum to the journaled file/unmount patch

Hi,

Now in the GFS2 -nmw git tree. Thanks,

Steve.

Quoted 33 lines · Robert Peterson

Hi,

This patch is an addendum to the previous journaled file/unmount patch. It fixes a problem discovered during testing.

Regards,

Bob Peterson
Red Hat Cluster Suite

--

 fs/gfs2/lops.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)
fs/gfs2/lops.c +4 -2
index dd810ad..aff70f0 100644
@@ -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;