aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Gruenbacher <agruenba@redhat.com>2019-04-04 10:32:41 -0400
committerAndreas Gruenbacher <agruenba@redhat.com>2019-05-07 17:39:14 -0400
commit32ac43f6a4ebf398c82e4b541fbe1229b2e47384 (patch)
tree1826f9ca086f666bb81c3352c19fe4fecdfd49fd
parentce895cf15ab60b93464ebbb515f2fc9e7a8cef9a (diff)
gfs2: Remove unnecessary extern declarations
Make log operations statuc; they are only used locally. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
-rw-r--r--fs/gfs2/lops.c6
-rw-r--r--fs/gfs2/lops.h5
2 files changed, 3 insertions, 8 deletions
diff --git a/fs/gfs2/lops.c b/fs/gfs2/lops.c
index 2fd61853ba63..6c1ec6c60639 100644
--- a/fs/gfs2/lops.c
+++ b/fs/gfs2/lops.c
@@ -870,7 +870,7 @@ static void databuf_lo_after_commit(struct gfs2_sbd *sdp, struct gfs2_trans *tr)
870} 870}
871 871
872 872
873const struct gfs2_log_operations gfs2_buf_lops = { 873static const struct gfs2_log_operations gfs2_buf_lops = {
874 .lo_before_commit = buf_lo_before_commit, 874 .lo_before_commit = buf_lo_before_commit,
875 .lo_after_commit = buf_lo_after_commit, 875 .lo_after_commit = buf_lo_after_commit,
876 .lo_before_scan = buf_lo_before_scan, 876 .lo_before_scan = buf_lo_before_scan,
@@ -879,7 +879,7 @@ const struct gfs2_log_operations gfs2_buf_lops = {
879 .lo_name = "buf", 879 .lo_name = "buf",
880}; 880};
881 881
882const struct gfs2_log_operations gfs2_revoke_lops = { 882static const struct gfs2_log_operations gfs2_revoke_lops = {
883 .lo_before_commit = revoke_lo_before_commit, 883 .lo_before_commit = revoke_lo_before_commit,
884 .lo_after_commit = revoke_lo_after_commit, 884 .lo_after_commit = revoke_lo_after_commit,
885 .lo_before_scan = revoke_lo_before_scan, 885 .lo_before_scan = revoke_lo_before_scan,
@@ -888,7 +888,7 @@ const struct gfs2_log_operations gfs2_revoke_lops = {
888 .lo_name = "revoke", 888 .lo_name = "revoke",
889}; 889};
890 890
891const struct gfs2_log_operations gfs2_databuf_lops = { 891static const struct gfs2_log_operations gfs2_databuf_lops = {
892 .lo_before_commit = databuf_lo_before_commit, 892 .lo_before_commit = databuf_lo_before_commit,
893 .lo_after_commit = databuf_lo_after_commit, 893 .lo_after_commit = databuf_lo_after_commit,
894 .lo_scan_elements = databuf_lo_scan_elements, 894 .lo_scan_elements = databuf_lo_scan_elements,
diff --git a/fs/gfs2/lops.h b/fs/gfs2/lops.h
index 4e81742de7a0..320fbf28d2fb 100644
--- a/fs/gfs2/lops.h
+++ b/fs/gfs2/lops.h
@@ -20,11 +20,6 @@
20 ((sizeof(struct gfs2_log_descriptor) + (2 * sizeof(__be64) - 1)) & \ 20 ((sizeof(struct gfs2_log_descriptor) + (2 * sizeof(__be64) - 1)) & \
21 ~(2 * sizeof(__be64) - 1)) 21 ~(2 * sizeof(__be64) - 1))
22 22
23extern const struct gfs2_log_operations gfs2_glock_lops;
24extern const struct gfs2_log_operations gfs2_buf_lops;
25extern const struct gfs2_log_operations gfs2_revoke_lops;
26extern const struct gfs2_log_operations gfs2_databuf_lops;
27
28extern const struct gfs2_log_operations *gfs2_log_ops[]; 23extern const struct gfs2_log_operations *gfs2_log_ops[];
29extern u64 gfs2_log_bmap(struct gfs2_sbd *sdp); 24extern u64 gfs2_log_bmap(struct gfs2_sbd *sdp);
30extern void gfs2_log_write(struct gfs2_sbd *sdp, struct page *page, 25extern void gfs2_log_write(struct gfs2_sbd *sdp, struct page *page,