]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/blobdiff - fs/gfs2/trans.c
GFS2: Move log buffer accounting to transaction
[mirror_ubuntu-zesty-kernel.git] / fs / gfs2 / trans.c
index e0464a22908c1e7942c33ec1501cb1dc504cef50..295f400f35ab06851d1f28a1c4011c08be322b0a 100644 (file)
@@ -213,7 +213,6 @@ void gfs2_trans_add_data(struct gfs2_glock *gl, struct buffer_head *bh)
                set_bit(GLF_DIRTY, &bd->bd_gl->gl_flags);
                gfs2_pin(sdp, bd->bd_bh);
                tr->tr_num_databuf_new++;
-               sdp->sd_log_num_databuf++;
                list_add_tail(&bd->bd_list, &tr->tr_databuf);
        }
        gfs2_log_unlock(sdp);
@@ -241,7 +240,6 @@ static void meta_lo_add(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd)
        gfs2_pin(sdp, bd->bd_bh);
        mh->__pad0 = cpu_to_be64(0);
        mh->mh_jid = cpu_to_be32(sdp->sd_jdesc->jd_jid);
-       sdp->sd_log_num_buf++;
        list_add(&bd->bd_list, &tr->tr_buf);
        tr->tr_num_buf_new++;
 }