Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38800
b: refs/heads/master
c: 5dc39fe
h: refs/heads/master
v: v3
  • Loading branch information
Benjamin Marzinski authored and Steven Whitehouse committed Aug 25, 2006
1 parent d512456 commit 32b8e78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 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: a2242db0906445491d9ac50bfa756b0de0a25d45
refs/heads/master: 5dc39fe621ead2fa2a0439a686be4df185861eae
4 changes: 3 additions & 1 deletion trunk/fs/gfs2/log.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,7 @@ void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl)

static void log_refund(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
{
unsigned int reserved = 1;
unsigned int reserved = 0;
unsigned int old;

gfs2_log_lock(sdp);
Expand All @@ -524,6 +524,8 @@ static void log_refund(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
if (sdp->sd_log_commited_revoke)
reserved += gfs2_struct2blk(sdp, sdp->sd_log_commited_revoke,
sizeof(uint64_t));
if (reserved)
reserved++;

old = sdp->sd_log_blks_free;
sdp->sd_log_blks_free += tr->tr_reserved -
Expand Down

0 comments on commit 32b8e78

Please sign in to comment.