Skip to contentSkip to conversation

make gfs2_glock_hold() static

PATCH In review Adrian Bunk 2 participants 2 messages Jan 28, 2008 – Jan 29, 2008 GFS2 file system

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make gfs2_glock_hold() static

gfs2_glock_hold() can now become static.

---

 fs/gfs2/glock.c |    2 +-
 fs/gfs2/glock.h |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

f04fbd054a051a564a3138e0e02b7423acf45a06

fs/gfs2/glock.c +1 -1
index 80e09c5..e18f251 100644
@@ -197,7 +197,7 @@ static void glock_free(struct gfs2_glock *gl)
  *
  */
 
-void gfs2_glock_hold(struct gfs2_glock *gl)
+static void gfs2_glock_hold(struct gfs2_glock *gl)
 {
 	atomic_inc(&gl->gl_ref);
 }
fs/gfs2/glock.h +0 -1
index b16f604..0724076 100644
@@ -77,7 +77,6 @@ static inline int gfs2_glock_is_blocking(struct gfs2_glock *gl)
 int gfs2_glock_get(struct gfs2_sbd *sdp,
 		   u64 number, const struct gfs2_glock_operations *glops,
 		   int create, struct gfs2_glock **glp);
-void gfs2_glock_hold(struct gfs2_glock *gl);
 int gfs2_glock_put(struct gfs2_glock *gl);
 void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags,
 		      struct gfs2_holder *gh);
#1 lore raw

Hi,

Now in the GFS2 -nmw git tree. Thanks,

Steve.

Quoted 37 lines · Adrian Bunk

gfs2_glock_hold() can now become static.

---

 fs/gfs2/glock.c |    2 +-
 fs/gfs2/glock.h |    1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

f04fbd054a051a564a3138e0e02b7423acf45a06

fs/gfs2/glock.c +1 -1
index 80e09c5..e18f251 100644
@@ -197,7 +197,7 @@ static void glock_free(struct gfs2_glock *gl)
  *
  */
 
-void gfs2_glock_hold(struct gfs2_glock *gl)
+static void gfs2_glock_hold(struct gfs2_glock *gl)
 {
 	atomic_inc(&gl->gl_ref);
 }
fs/gfs2/glock.h +0 -1
index b16f604..0724076 100644
@@ -77,7 +77,6 @@ static inline int gfs2_glock_is_blocking(struct gfs2_glock *gl)
 int gfs2_glock_get(struct gfs2_sbd *sdp,
 		   u64 number, const struct gfs2_glock_operations *glops,
 		   int create, struct gfs2_glock **glp);
-void gfs2_glock_hold(struct gfs2_glock *gl);
 int gfs2_glock_put(struct gfs2_glock *gl);
 void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags,
 		      struct gfs2_holder *gh);