Skip to content

Commit 5d43975

Browse files
author
Andreas Gruenbacher
committed
gfs2: Fix incorrect variable name
Rename sd_log_commited_revoke to sd_log_committed_revoke. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 2b0fb35 commit 5d43975

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

fs/gfs2/incore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,7 @@ struct gfs2_sbd {
804804

805805
struct gfs2_trans *sd_log_tr;
806806
unsigned int sd_log_blks_reserved;
807-
int sd_log_commited_revoke;
807+
int sd_log_committed_revoke;
808808

809809
atomic_t sd_log_pinned;
810810
unsigned int sd_log_num_revoke;

fs/gfs2/log.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -469,8 +469,8 @@ static unsigned int calc_reserved(struct gfs2_sbd *sdp)
469469
reserved += DIV_ROUND_UP(dbuf, databuf_limit(sdp));
470470
}
471471

472-
if (sdp->sd_log_commited_revoke > 0)
473-
reserved += gfs2_struct2blk(sdp, sdp->sd_log_commited_revoke);
472+
if (sdp->sd_log_committed_revoke > 0)
473+
reserved += gfs2_struct2blk(sdp, sdp->sd_log_committed_revoke);
474474
/* One for the overall header */
475475
if (reserved)
476476
reserved++;
@@ -825,7 +825,7 @@ void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags)
825825
if (unlikely(state == SFS_FROZEN))
826826
gfs2_assert_withdraw(sdp, !sdp->sd_log_num_revoke);
827827
gfs2_assert_withdraw(sdp,
828-
sdp->sd_log_num_revoke == sdp->sd_log_commited_revoke);
828+
sdp->sd_log_num_revoke == sdp->sd_log_committed_revoke);
829829

830830
gfs2_ordered_write(sdp);
831831
lops_before_commit(sdp, tr);
@@ -844,7 +844,7 @@ void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl, u32 flags)
844844
gfs2_log_lock(sdp);
845845
sdp->sd_log_head = sdp->sd_log_flush_head;
846846
sdp->sd_log_blks_reserved = 0;
847-
sdp->sd_log_commited_revoke = 0;
847+
sdp->sd_log_committed_revoke = 0;
848848

849849
spin_lock(&sdp->sd_ail_lock);
850850
if (tr && !list_empty(&tr->tr_ail1_list)) {
@@ -916,7 +916,7 @@ static void log_refund(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
916916
set_bit(TR_ATTACHED, &tr->tr_flags);
917917
}
918918

919-
sdp->sd_log_commited_revoke += tr->tr_num_revoke;
919+
sdp->sd_log_committed_revoke += tr->tr_num_revoke;
920920
reserved = calc_reserved(sdp);
921921
maxres = sdp->sd_log_blks_reserved + tr->tr_reserved;
922922
gfs2_assert_withdraw(sdp, maxres >= reserved);

0 commit comments

Comments
 (0)