[Cluster-devel] [PATCH 22/23] gfs2_edit: Don't export bh

Andrew Price anprice at redhat.com
Thu Feb 4 11:20:33 UTC 2016


bh is now only used in hexedit.c so restrict its visibility to that
file.

Signed-off-by: Andrew Price <anprice at redhat.com>
---
 gfs2/edit/gfs2hex.c | 1 -
 gfs2/edit/hexedit.c | 1 +
 gfs2/edit/hexedit.h | 1 -
 3 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/gfs2/edit/gfs2hex.c b/gfs2/edit/gfs2hex.c
index 4915e5c..1f55a43 100644
--- a/gfs2/edit/gfs2hex.c
+++ b/gfs2/edit/gfs2hex.c
@@ -29,7 +29,6 @@
 	} while (FALSE);
 
 struct gfs2_sb sb;
-struct gfs2_buffer_head *bh;
 struct gfs2_dinode di;
 int line, termlines, modelines[DMODES];
 char edit_fmt[80];
diff --git a/gfs2/edit/hexedit.c b/gfs2/edit/hexedit.c
index 831ca45..a89ae36 100644
--- a/gfs2/edit/hexedit.c
+++ b/gfs2/edit/hexedit.c
@@ -34,6 +34,7 @@ const char *allocdesc[2][5] = {
 	{"Free ", "Data ", "Unlnk", "Meta ", "Resrv"},
 	{"Free ", "Data ", "FreeM", "Meta ", "Resrv"},};
 
+struct gfs2_buffer_head *bh;
 struct gfs2_rgrp *lrgrp;
 struct gfs2_meta_header *lmh;
 struct gfs2_dinode *ldi;
diff --git a/gfs2/edit/hexedit.h b/gfs2/edit/hexedit.h
index 15586d4..f3220a7 100644
--- a/gfs2/edit/hexedit.h
+++ b/gfs2/edit/hexedit.h
@@ -37,7 +37,6 @@ extern char estring[1024]; /* edit string */
 extern char efield[64];
 extern uint64_t dev_offset;
 extern uint64_t max_block;
-extern struct gfs2_buffer_head *bh;
 extern int termlines;
 extern int insert;
 extern const char *termtype;
-- 
2.4.3




More information about the Cluster-devel mailing list