gfs2-utils: master - libgfs2: Make find_good_lh and jhead_scan static
Andrew Price
andyp at fedoraproject.org
Mon Nov 3 20:02:01 UTC 2014
Gitweb: http://git.fedorahosted.org/git/?p=gfs2-utils.git;a=commitdiff;h=db04fb6e6a9825dc4ea45d8fd4bd1a8741881c23
Commit: db04fb6e6a9825dc4ea45d8fd4bd1a8741881c23
Parent: cf9336713097a5ba8487921bf5b8097462798dba
Author: Andrew Price <anprice at redhat.com>
AuthorDate: Tue Sep 30 12:19:06 2014 +0100
Committer: Andrew Price <anprice at redhat.com>
CommitterDate: Mon Oct 20 15:05:57 2014 +0100
libgfs2: Make find_good_lh and jhead_scan static
These functions were only being using by libgfs2 so remove them from
libgfs2.h and make them static.
Signed-off-by: Andrew Price <anprice at redhat.com>
---
gfs2/libgfs2/libgfs2.h | 3 ---
gfs2/libgfs2/recovery.c | 6 ++----
2 files changed, 2 insertions(+), 7 deletions(-)
diff --git a/gfs2/libgfs2/libgfs2.h b/gfs2/libgfs2/libgfs2.h
index 58602c0..5bffaed 100644
--- a/gfs2/libgfs2/libgfs2.h
+++ b/gfs2/libgfs2/libgfs2.h
@@ -689,9 +689,6 @@ extern int gfs2_revoke_check(struct gfs2_sbd *sdp, uint64_t blkno,
extern void gfs2_revoke_clean(struct gfs2_sbd *sdp);
extern int get_log_header(struct gfs2_inode *ip, unsigned int blk,
struct gfs2_log_header *head);
-extern int find_good_lh(struct gfs2_inode *ip, unsigned int *blk,
- struct gfs2_log_header *head);
-extern int jhead_scan(struct gfs2_inode *ip, struct gfs2_log_header *head);
extern int gfs2_find_jhead(struct gfs2_inode *ip, struct gfs2_log_header *head);
extern int clean_journal(struct gfs2_inode *ip, struct gfs2_log_header *head);
diff --git a/gfs2/libgfs2/recovery.c b/gfs2/libgfs2/recovery.c
index 6ea828d..cad723f 100644
--- a/gfs2/libgfs2/recovery.c
+++ b/gfs2/libgfs2/recovery.c
@@ -91,9 +91,7 @@ int get_log_header(struct gfs2_inode *ip, unsigned int blk,
*
* Returns: errno
*/
-
-int find_good_lh(struct gfs2_inode *ip, unsigned int *blk,
- struct gfs2_log_header *head)
+static int find_good_lh(struct gfs2_inode *ip, unsigned int *blk, struct gfs2_log_header *head)
{
unsigned int orig_blk = *blk;
int error;
@@ -123,7 +121,7 @@ int find_good_lh(struct gfs2_inode *ip, unsigned int *blk,
* Returns: errno
*/
-int jhead_scan(struct gfs2_inode *ip, struct gfs2_log_header *head)
+static int jhead_scan(struct gfs2_inode *ip, struct gfs2_log_header *head)
{
unsigned int blk = head->lh_blkno;
uint32_t jd_blocks = ip->i_di.di_size / ip->i_sbd->sd_sb.sb_bsize;
More information about the cluster-commits
mailing list