Commit e7501bf8 authored by Andreas Gruenbacher's avatar Andreas Gruenbacher

gfs2: Rename gfs2_{write => flush}_revokes

Function gfs2_write_revokes doesn't actually write any revokes; instead, it
adds revokes to the system transaction during a flush.
Signed-off-by: default avatarAndreas Gruenbacher <agruenba@redhat.com>
parent 625a8edd
...@@ -696,7 +696,7 @@ void gfs2_glock_remove_revoke(struct gfs2_glock *gl) ...@@ -696,7 +696,7 @@ void gfs2_glock_remove_revoke(struct gfs2_glock *gl)
} }
/** /**
* gfs2_write_revokes - Add as many revokes to the system transaction as we can * gfs2_flush_revokes - Add as many revokes to the system transaction as we can
* @sdp: The GFS2 superblock * @sdp: The GFS2 superblock
* *
* Our usual strategy is to defer writing revokes as much as we can in the hope * Our usual strategy is to defer writing revokes as much as we can in the hope
...@@ -707,7 +707,7 @@ void gfs2_glock_remove_revoke(struct gfs2_glock *gl) ...@@ -707,7 +707,7 @@ void gfs2_glock_remove_revoke(struct gfs2_glock *gl)
* been written back. This will basically come at no cost now, and will save * been written back. This will basically come at no cost now, and will save
* us from having to keep track of those blocks on the AIL2 list later. * us from having to keep track of those blocks on the AIL2 list later.
*/ */
void gfs2_write_revokes(struct gfs2_sbd *sdp) void gfs2_flush_revokes(struct gfs2_sbd *sdp)
{ {
/* number of revokes we still have room for */ /* number of revokes we still have room for */
unsigned int max_revokes; unsigned int max_revokes;
......
...@@ -78,6 +78,6 @@ extern void log_flush_wait(struct gfs2_sbd *sdp); ...@@ -78,6 +78,6 @@ extern void log_flush_wait(struct gfs2_sbd *sdp);
extern int gfs2_logd(void *data); extern int gfs2_logd(void *data);
extern void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd); extern void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
extern void gfs2_glock_remove_revoke(struct gfs2_glock *gl); extern void gfs2_glock_remove_revoke(struct gfs2_glock *gl);
extern void gfs2_write_revokes(struct gfs2_sbd *sdp); extern void gfs2_flush_revokes(struct gfs2_sbd *sdp);
#endif /* __LOG_DOT_H__ */ #endif /* __LOG_DOT_H__ */
...@@ -845,7 +845,7 @@ static void revoke_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr) ...@@ -845,7 +845,7 @@ static void revoke_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
struct page *page; struct page *page;
unsigned int length; unsigned int length;
gfs2_write_revokes(sdp); gfs2_flush_revokes(sdp);
if (!sdp->sd_log_num_revoke) if (!sdp->sd_log_num_revoke)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment