From mboxrd@z Thu Jan 1 00:00:00 1970 From: Steven Whitehouse Date: Wed, 20 Jun 2007 14:37:49 +0100 Subject: [Cluster-devel] [PATCH] GFS2: Addendum to the journaled file/unmount patch In-Reply-To: <46792CCE.8050000@redhat.com> References: <46792CCE.8050000@redhat.com> Message-ID: <1182346669.8765.95.camel@quoit> List-Id: To: cluster-devel.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, Now in the GFS2 -nmw git tree. Thanks, Steve. On Wed, 2007-06-20 at 08:34 -0500, Robert Peterson wrote: > 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 > > Signed-off-by: Bob Peterson > -- > fs/gfs2/lops.c | 6 ++++-- > 1 files changed, 4 insertions(+), 2 deletions(-) > > diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c > index dd810ad..aff70f0 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; >