aboutsummaryrefslogtreecommitdiffstats
path: root/fs/gfs2/glock.h
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@stusta.de>2006-04-28 10:59:12 -0400
committerSteven Whitehouse <swhiteho@redhat.com>2006-04-28 10:59:12 -0400
commit08bc2dbc7327e89b9d5b9c8ef9401d1df2622fca (patch)
tree2c16cbd9f5bd856b00ef0a0d9f88b3afa67712ee /fs/gfs2/glock.h
parentc56b39cd2c55d521597f04bbd872a08d1c4373ca (diff)
[GFS2] [-mm patch] fs/gfs2/: possible cleanups
This patch contains the following possible cleanups: - make needlessly global code static - #if 0 unused functions - remove the following global function that was both unused and unimplemented: - super.c: gfs2_do_upgrade() Signed-off-by: Adrian Bunk <bunk@stusta.de> Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Diffstat (limited to 'fs/gfs2/glock.h')
-rw-r--r--fs/gfs2/glock.h12
1 files changed, 0 insertions, 12 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h
index 6f9c88ed5383..a36b26585fb8 100644
--- a/fs/gfs2/glock.h
+++ b/fs/gfs2/glock.h
@@ -73,8 +73,6 @@ static inline int gfs2_glock_is_blocking(struct gfs2_glock *gl)
73 return ret; 73 return ret;
74} 74}
75 75
76struct gfs2_glock *gfs2_glock_find(struct gfs2_sbd *sdp,
77 struct lm_lockname *name);
78int gfs2_glock_get(struct gfs2_sbd *sdp, 76int gfs2_glock_get(struct gfs2_sbd *sdp,
79 uint64_t number, struct gfs2_glock_operations *glops, 77 uint64_t number, struct gfs2_glock_operations *glops,
80 int create, struct gfs2_glock **glp); 78 int create, struct gfs2_glock **glp);
@@ -85,15 +83,11 @@ void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags,
85void gfs2_holder_reinit(unsigned int state, unsigned flags, 83void gfs2_holder_reinit(unsigned int state, unsigned flags,
86 struct gfs2_holder *gh); 84 struct gfs2_holder *gh);
87void gfs2_holder_uninit(struct gfs2_holder *gh); 85void gfs2_holder_uninit(struct gfs2_holder *gh);
88struct gfs2_holder *gfs2_holder_get(struct gfs2_glock *gl, unsigned int state,
89 int flags, gfp_t gfp_flags);
90void gfs2_holder_put(struct gfs2_holder *gh);
91 86
92void gfs2_glock_xmote_th(struct gfs2_glock *gl, unsigned int state, int flags); 87void gfs2_glock_xmote_th(struct gfs2_glock *gl, unsigned int state, int flags);
93void gfs2_glock_drop_th(struct gfs2_glock *gl); 88void gfs2_glock_drop_th(struct gfs2_glock *gl);
94 89
95void gfs2_glmutex_lock(struct gfs2_glock *gl); 90void gfs2_glmutex_lock(struct gfs2_glock *gl);
96int gfs2_glmutex_trylock(struct gfs2_glock *gl);
97void gfs2_glmutex_unlock(struct gfs2_glock *gl); 91void gfs2_glmutex_unlock(struct gfs2_glock *gl);
98 92
99int gfs2_glock_nq(struct gfs2_holder *gh); 93int gfs2_glock_nq(struct gfs2_holder *gh);
@@ -101,9 +95,6 @@ int gfs2_glock_poll(struct gfs2_holder *gh);
101int gfs2_glock_wait(struct gfs2_holder *gh); 95int gfs2_glock_wait(struct gfs2_holder *gh);
102void gfs2_glock_dq(struct gfs2_holder *gh); 96void gfs2_glock_dq(struct gfs2_holder *gh);
103 97
104void gfs2_glock_prefetch(struct gfs2_glock *gl, unsigned int state, int flags);
105void gfs2_glock_force_drop(struct gfs2_glock *gl);
106
107int gfs2_glock_be_greedy(struct gfs2_glock *gl, unsigned int time); 98int gfs2_glock_be_greedy(struct gfs2_glock *gl, unsigned int time);
108 99
109void gfs2_glock_dq_uninit(struct gfs2_holder *gh); 100void gfs2_glock_dq_uninit(struct gfs2_holder *gh);
@@ -148,7 +139,6 @@ static inline int gfs2_glock_nq_init(struct gfs2_glock *gl,
148 139
149int gfs2_lvb_hold(struct gfs2_glock *gl); 140int gfs2_lvb_hold(struct gfs2_glock *gl);
150void gfs2_lvb_unhold(struct gfs2_glock *gl); 141void gfs2_lvb_unhold(struct gfs2_glock *gl);
151void gfs2_lvb_sync(struct gfs2_glock *gl);
152 142
153void gfs2_glock_cb(lm_fsdata_t *fsdata, unsigned int type, void *data); 143void gfs2_glock_cb(lm_fsdata_t *fsdata, unsigned int type, void *data);
154 144
@@ -161,6 +151,4 @@ void gfs2_reclaim_glock(struct gfs2_sbd *sdp);
161void gfs2_scand_internal(struct gfs2_sbd *sdp); 151void gfs2_scand_internal(struct gfs2_sbd *sdp);
162void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait); 152void gfs2_gl_hash_clear(struct gfs2_sbd *sdp, int wait);
163 153
164int gfs2_dump_lockstate(struct gfs2_sbd *sdp);
165
166#endif /* __GLOCK_DOT_H__ */ 154#endif /* __GLOCK_DOT_H__ */