]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commitdiff
GFS2: Make function gfs2_remove_from_ail static
authorBob Peterson <rpeterso@redhat.com>
Fri, 2 Mar 2018 13:59:44 +0000 (06:59 -0700)
committerBob Peterson <rpeterso@redhat.com>
Thu, 8 Mar 2018 16:26:20 +0000 (09:26 -0700)
Function gfs2_remove_from_ail is only ever used from log.c, so there
is no reason to declare it extern. This patch removes the extern and
declares it static.

Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/log.c
fs/gfs2/log.h

index cf6b46247df47826b9ea6763f14866124efa2977..0248835625f1368ba8bae3992150ab3806bd8312 100644 (file)
@@ -73,7 +73,7 @@ unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct,
  *
  */
 
-void gfs2_remove_from_ail(struct gfs2_bufdata *bd)
+static void gfs2_remove_from_ail(struct gfs2_bufdata *bd)
 {
        bd->bd_tr = NULL;
        list_del_init(&bd->bd_ail_st_list);
index 93b52ac1ca1f1af9e626fd2833f50d8d2e3e9e4d..1862e310a067c7182b6d1540999ea9f7fb0c1ccc 100644 (file)
@@ -70,7 +70,6 @@ extern void gfs2_write_log_header(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
 extern void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl,
                           u32 type);
 extern void gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *trans);
-extern void gfs2_remove_from_ail(struct gfs2_bufdata *bd);
 extern void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc);
 
 extern void gfs2_log_shutdown(struct gfs2_sbd *sdp);