diff options
Diffstat (limited to 'fs/gfs2/glock.h')
-rw-r--r-- | fs/gfs2/glock.h | 54 |
1 files changed, 27 insertions, 27 deletions
diff --git a/fs/gfs2/glock.h b/fs/gfs2/glock.h index 307ac31df781..fd580b7861d5 100644 --- a/fs/gfs2/glock.h +++ b/fs/gfs2/glock.h | |||
@@ -178,33 +178,33 @@ static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl) | |||
178 | return NULL; | 178 | return NULL; |
179 | } | 179 | } |
180 | 180 | ||
181 | int gfs2_glock_get(struct gfs2_sbd *sdp, | 181 | extern int gfs2_glock_get(struct gfs2_sbd *sdp, u64 number, |
182 | u64 number, const struct gfs2_glock_operations *glops, | 182 | const struct gfs2_glock_operations *glops, |
183 | int create, struct gfs2_glock **glp); | 183 | int create, struct gfs2_glock **glp); |
184 | void gfs2_glock_hold(struct gfs2_glock *gl); | 184 | extern void gfs2_glock_hold(struct gfs2_glock *gl); |
185 | void gfs2_glock_put_nolock(struct gfs2_glock *gl); | 185 | extern void gfs2_glock_put_nolock(struct gfs2_glock *gl); |
186 | void gfs2_glock_put(struct gfs2_glock *gl); | 186 | extern void gfs2_glock_put(struct gfs2_glock *gl); |
187 | void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, unsigned flags, | 187 | extern void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state, |
188 | struct gfs2_holder *gh); | 188 | unsigned flags, struct gfs2_holder *gh); |
189 | void gfs2_holder_reinit(unsigned int state, unsigned flags, | 189 | extern void gfs2_holder_reinit(unsigned int state, unsigned flags, |
190 | struct gfs2_holder *gh); | 190 | struct gfs2_holder *gh); |
191 | void gfs2_holder_uninit(struct gfs2_holder *gh); | 191 | extern void gfs2_holder_uninit(struct gfs2_holder *gh); |
192 | int gfs2_glock_nq(struct gfs2_holder *gh); | 192 | extern int gfs2_glock_nq(struct gfs2_holder *gh); |
193 | int gfs2_glock_poll(struct gfs2_holder *gh); | 193 | extern int gfs2_glock_poll(struct gfs2_holder *gh); |
194 | int gfs2_glock_wait(struct gfs2_holder *gh); | 194 | extern int gfs2_glock_wait(struct gfs2_holder *gh); |
195 | void gfs2_glock_dq(struct gfs2_holder *gh); | 195 | extern void gfs2_glock_dq(struct gfs2_holder *gh); |
196 | void gfs2_glock_dq_wait(struct gfs2_holder *gh); | 196 | extern void gfs2_glock_dq_wait(struct gfs2_holder *gh); |
197 | 197 | extern void gfs2_glock_dq_uninit(struct gfs2_holder *gh); | |
198 | void gfs2_glock_dq_uninit(struct gfs2_holder *gh); | 198 | extern int gfs2_glock_nq_num(struct gfs2_sbd *sdp, u64 number, |
199 | int gfs2_glock_nq_num(struct gfs2_sbd *sdp, | 199 | const struct gfs2_glock_operations *glops, |
200 | u64 number, const struct gfs2_glock_operations *glops, | 200 | unsigned int state, int flags, |
201 | unsigned int state, int flags, struct gfs2_holder *gh); | 201 | struct gfs2_holder *gh); |
202 | 202 | extern int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); | |
203 | int gfs2_glock_nq_m(unsigned int num_gh, struct gfs2_holder *ghs); | 203 | extern void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs); |
204 | void gfs2_glock_dq_m(unsigned int num_gh, struct gfs2_holder *ghs); | 204 | extern void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs); |
205 | void gfs2_glock_dq_uninit_m(unsigned int num_gh, struct gfs2_holder *ghs); | 205 | extern int gfs2_dump_glock(struct seq_file *seq, const struct gfs2_glock *gl); |
206 | 206 | #define GLOCK_BUG_ON(gl,x) do { if (unlikely(x)) { gfs2_dump_glock(NULL, gl); BUG(); } } while(0) | |
207 | __printf(2, 3) | 207 | extern __printf(2, 3) |
208 | void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...); | 208 | void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...); |
209 | 209 | ||
210 | /** | 210 | /** |