gfs2: Rename gfs2_{write => flush}_revokes
authorAndreas Gruenbacher <agruenba@redhat.com>
Sat, 19 Dec 2020 02:11:51 +0000 (03:11 +0100)
committerAndreas Gruenbacher <agruenba@redhat.com>
Tue, 19 Jan 2021 20:17:49 +0000 (21:17 +0100)
Function gfs2_write_revokes doesn't actually write any revokes; instead, it
adds revokes to the system transaction during a flush.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
fs/gfs2/log.c
fs/gfs2/log.h
fs/gfs2/lops.c

index 12e8280f0806ff7c1bd425ec94da9726f1387461..7375c007bde5c4f9353623350f966f76c1e898b8 100644 (file)
@@ -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
  *
  * 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)
  * 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.
  */
-void gfs2_write_revokes(struct gfs2_sbd *sdp)
+void gfs2_flush_revokes(struct gfs2_sbd *sdp)
 {
        /* number of revokes we still have room for */
        unsigned int max_revokes;
index 79f97290146ef3cdc8d2bf08ede4fb0c74d1186c..a9cdbc990edf153fa8922621e60a034ff65e8a47 100644 (file)
@@ -78,6 +78,6 @@ extern void log_flush_wait(struct gfs2_sbd *sdp);
 extern int gfs2_logd(void *data);
 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_write_revokes(struct gfs2_sbd *sdp);
+extern void gfs2_flush_revokes(struct gfs2_sbd *sdp);
 
 #endif /* __LOG_DOT_H__ */
index 3922b26264f5a87cec611ab2e6b01cf4827cde44..8658ebbcb4a90d2f749de81dd2c0bfe035f4f521 100644 (file)
@@ -845,7 +845,7 @@ static void revoke_lo_before_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
        struct page *page;
        unsigned int length;
 
-       gfs2_write_revokes(sdp);
+       gfs2_flush_revokes(sdp);
        if (!sdp->sd_log_num_revoke)
                return;