Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38632
b: refs/heads/master
c: b4dc729
h: refs/heads/master
v: v3
  • Loading branch information
Steven Whitehouse committed Mar 1, 2006
1 parent 35f8bb3 commit 28f92e1
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c9fd43078f5007c6ca6b3a9cd04c51a8f0e44a20
refs/heads/master: b4dc72911d149d7d6b7ffb512bd68906f1cbd33a
2 changes: 0 additions & 2 deletions trunk/fs/gfs2/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -597,8 +597,6 @@ void gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
sdp->sd_vfs->s_dirt = 1;
unlock_from_trans(sdp);

kfree(tr);

gfs2_log_lock(sdp);
if (sdp->sd_log_num_buf > gfs2_tune_get(sdp, gt_incore_log_blocks)) {
gfs2_log_unlock(sdp);
Expand Down
1 change: 1 addition & 0 deletions trunk/fs/gfs2/lops.c
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ static void databuf_lo_add(struct gfs2_sbd *sdp, struct gfs2_log_element *le)
gfs2_trans_add_gl(bd->bd_gl);
list_add(&bd->bd_list_tr, &tr->tr_list_buf);
gfs2_pin(sdp, bd->bd_bh);
tr->tr_num_buf_new++;
}
gfs2_log_lock(sdp);
if (!list_empty(&le->le_list)) {
Expand Down
13 changes: 6 additions & 7 deletions trunk/fs/gfs2/trans.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,21 +87,18 @@ int gfs2_trans_begin_i(struct gfs2_sbd *sdp, unsigned int blocks,
void gfs2_trans_end(struct gfs2_sbd *sdp)
{
struct gfs2_trans *tr;
struct gfs2_holder *t_gh;

tr = current->journal_info;
current->journal_info = NULL;

if (gfs2_assert_warn(sdp, tr))
return;

t_gh = &tr->tr_t_gh;

if (!tr->tr_touched) {
gfs2_log_release(sdp, tr->tr_reserved);

gfs2_glock_dq(t_gh);
gfs2_holder_uninit(t_gh);
gfs2_glock_dq(&tr->tr_t_gh);
gfs2_holder_uninit(&tr->tr_t_gh);

kfree(tr);
return;
Expand All @@ -120,8 +117,10 @@ void gfs2_trans_end(struct gfs2_sbd *sdp)

gfs2_log_commit(sdp, tr);

gfs2_glock_dq(t_gh);
gfs2_holder_uninit(t_gh);
gfs2_glock_dq(&tr->tr_t_gh);
gfs2_holder_uninit(&tr->tr_t_gh);

kfree(tr);

if (sdp->sd_vfs->s_flags & MS_SYNCHRONOUS)
gfs2_log_flush(sdp);
Expand Down

0 comments on commit 28f92e1

Please sign in to comment.