gfs2: make gfs2_log_write_page static
authorBob Peterson <rpeterso@redhat.com>
Tue, 22 Dec 2020 20:37:35 +0000 (15:37 -0500)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 31 Dec 2020 14:53:35 +0000 (15:53 +0100)
Function gfs2_log_write_page is only used in lops.c, so make it static.

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

index 3922b26264f5a87cec611ab2e6b01cf4827cde44..9e9dd486bed9533c5181c7d2db484ff95213193b 100644 (file)
@@ -369,7 +369,7 @@ static void gfs2_log_write_bh(struct gfs2_sbd *sdp, struct buffer_head *bh)
  * the page may be freed at any time.
  */
 
-void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page)
+static void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page)
 {
        struct super_block *sb = sdp->sd_vfs;
        u64 dblock;
index fbdbb08dcec6af19057a4f4181e10f2441295c11..2280f68862debd7f837c19b05536ec4b02233b81 100644 (file)
@@ -22,7 +22,6 @@ extern void gfs2_log_incr_head(struct gfs2_sbd *sdp);
 extern u64 gfs2_log_bmap(struct gfs2_jdesc *jd, unsigned int lbn);
 extern void gfs2_log_write(struct gfs2_sbd *sdp, struct page *page,
                           unsigned size, unsigned offset, u64 blkno);
-extern void gfs2_log_write_page(struct gfs2_sbd *sdp, struct page *page);
 extern void gfs2_log_submit_bio(struct bio **biop, int opf);
 extern void gfs2_pin(struct gfs2_sbd *sdp, struct buffer_head *bh);
 extern int gfs2_find_jhead(struct gfs2_jdesc *jd,