From 9b647d8e352493dc46a9a092f80ab3c0409b2a0f Mon Sep 17 00:00:00 2001 From: Bob Peterson Date: Wed, 22 Aug 2007 11:15:29 -0500 Subject: [PATCH] --- yaml --- r: 67671 b: refs/heads/master c: ec217e0ece60f2240772e6f08e0529775846c627 h: refs/heads/master i: 67669: 1a7495f3d67d543f85d7ef821852aae69b0381e3 67667: acb3d41e17690352b87a6b429831625731417e2e 67663: 1bb7e8726d58dfd1680a74d408e4c81ce7ee45d9 v: v3 --- [refs] | 2 +- trunk/fs/gfs2/lops.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index e66adf41a762..1d7cd3fb7c80 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a947e0335699a1d387c3826e5b8eff9e0afe505e +refs/heads/master: ec217e0ece60f2240772e6f08e0529775846c627 diff --git a/trunk/fs/gfs2/lops.c b/trunk/fs/gfs2/lops.c index a0371f835cfb..7ef335623373 100644 --- a/trunk/fs/gfs2/lops.c +++ b/trunk/fs/gfs2/lops.c @@ -492,11 +492,12 @@ static void databuf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le) gfs2_trans_add_gl(bd->bd_gl); if (gfs2_is_jdata(ip)) { - sdp->sd_log_num_jdata++; gfs2_pin(sdp, bd->bd_bh); tr->tr_num_databuf_new++; } gfs2_log_lock(sdp); + if (gfs2_is_jdata(ip)) + sdp->sd_log_num_jdata++; sdp->sd_log_num_databuf++; list_add(&le->le_list, &sdp->sd_log_le_databuf); gfs2_log_unlock(sdp);