@@ -166,40 +166,40 @@ static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl)
166
166
return NULL ;
167
167
}
168
168
169
- extern int gfs2_glock_get (struct gfs2_sbd * sdp , u64 number ,
170
- const struct gfs2_glock_operations * glops ,
171
- int create , struct gfs2_glock * * glp );
172
- extern struct gfs2_glock * gfs2_glock_hold (struct gfs2_glock * gl );
173
- extern void gfs2_glock_put (struct gfs2_glock * gl );
174
- extern void gfs2_glock_queue_put (struct gfs2_glock * gl );
175
-
176
- extern void __gfs2_holder_init (struct gfs2_glock * gl , unsigned int state ,
177
- u16 flags , struct gfs2_holder * gh ,
178
- unsigned long ip );
169
+ int gfs2_glock_get (struct gfs2_sbd * sdp , u64 number ,
170
+ const struct gfs2_glock_operations * glops ,
171
+ int create , struct gfs2_glock * * glp );
172
+ struct gfs2_glock * gfs2_glock_hold (struct gfs2_glock * gl );
173
+ void gfs2_glock_put (struct gfs2_glock * gl );
174
+ void gfs2_glock_queue_put (struct gfs2_glock * gl );
175
+
176
+ void __gfs2_holder_init (struct gfs2_glock * gl , unsigned int state ,
177
+ u16 flags , struct gfs2_holder * gh ,
178
+ unsigned long ip );
179
179
static inline void gfs2_holder_init (struct gfs2_glock * gl , unsigned int state ,
180
180
u16 flags , struct gfs2_holder * gh ) {
181
181
__gfs2_holder_init (gl , state , flags , gh , _RET_IP_ );
182
182
}
183
183
184
- extern void gfs2_holder_reinit (unsigned int state , u16 flags ,
185
- struct gfs2_holder * gh );
186
- extern void gfs2_holder_uninit (struct gfs2_holder * gh );
187
- extern int gfs2_glock_nq (struct gfs2_holder * gh );
188
- extern int gfs2_glock_poll (struct gfs2_holder * gh );
189
- extern int gfs2_instantiate (struct gfs2_holder * gh );
190
- extern int gfs2_glock_holder_ready (struct gfs2_holder * gh );
191
- extern int gfs2_glock_wait (struct gfs2_holder * gh );
192
- extern int gfs2_glock_async_wait (unsigned int num_gh , struct gfs2_holder * ghs );
193
- extern void gfs2_glock_dq (struct gfs2_holder * gh );
194
- extern void gfs2_glock_dq_wait (struct gfs2_holder * gh );
195
- extern void gfs2_glock_dq_uninit (struct gfs2_holder * gh );
196
- extern int gfs2_glock_nq_num (struct gfs2_sbd * sdp , u64 number ,
197
- const struct gfs2_glock_operations * glops ,
198
- unsigned int state , u16 flags ,
199
- struct gfs2_holder * gh );
200
- extern int gfs2_glock_nq_m (unsigned int num_gh , struct gfs2_holder * ghs );
201
- extern void gfs2_glock_dq_m (unsigned int num_gh , struct gfs2_holder * ghs );
202
- extern void gfs2_dump_glock (struct seq_file * seq , struct gfs2_glock * gl ,
184
+ void gfs2_holder_reinit (unsigned int state , u16 flags ,
185
+ struct gfs2_holder * gh );
186
+ void gfs2_holder_uninit (struct gfs2_holder * gh );
187
+ int gfs2_glock_nq (struct gfs2_holder * gh );
188
+ int gfs2_glock_poll (struct gfs2_holder * gh );
189
+ int gfs2_instantiate (struct gfs2_holder * gh );
190
+ int gfs2_glock_holder_ready (struct gfs2_holder * gh );
191
+ int gfs2_glock_wait (struct gfs2_holder * gh );
192
+ int gfs2_glock_async_wait (unsigned int num_gh , struct gfs2_holder * ghs );
193
+ void gfs2_glock_dq (struct gfs2_holder * gh );
194
+ void gfs2_glock_dq_wait (struct gfs2_holder * gh );
195
+ void gfs2_glock_dq_uninit (struct gfs2_holder * gh );
196
+ int gfs2_glock_nq_num (struct gfs2_sbd * sdp , u64 number ,
197
+ const struct gfs2_glock_operations * glops ,
198
+ unsigned int state , u16 flags ,
199
+ struct gfs2_holder * gh );
200
+ int gfs2_glock_nq_m (unsigned int num_gh , struct gfs2_holder * ghs );
201
+ void gfs2_glock_dq_m (unsigned int num_gh , struct gfs2_holder * ghs );
202
+ void gfs2_dump_glock (struct seq_file * seq , struct gfs2_glock * gl ,
203
203
bool fsid );
204
204
#define GLOCK_BUG_ON (gl ,x ) do { if (unlikely(x)) { \
205
205
gfs2_dump_glock(NULL, gl, true); \
@@ -213,7 +213,7 @@ extern void gfs2_dump_glock(struct seq_file *seq, struct gfs2_glock *gl,
213
213
gfs2_assert_withdraw((gl)->gl_name.ln_sbd, (x)); } } \
214
214
while (0)
215
215
216
- extern __printf (2 , 3 )
216
+ __printf (2 , 3 )
217
217
void gfs2_print_dbg (struct seq_file * seq , const char * fmt , ...);
218
218
219
219
/**
@@ -241,27 +241,27 @@ static inline int gfs2_glock_nq_init(struct gfs2_glock *gl,
241
241
return error ;
242
242
}
243
243
244
- extern void gfs2_glock_cb (struct gfs2_glock * gl , unsigned int state );
245
- extern void gfs2_glock_complete (struct gfs2_glock * gl , int ret );
246
- extern bool gfs2_queue_try_to_evict (struct gfs2_glock * gl );
247
- extern void gfs2_cancel_delete_work (struct gfs2_glock * gl );
248
- extern void gfs2_flush_delete_work (struct gfs2_sbd * sdp );
249
- extern void gfs2_gl_hash_clear (struct gfs2_sbd * sdp );
250
- extern void gfs2_gl_dq_holders (struct gfs2_sbd * sdp );
251
- extern void gfs2_glock_thaw (struct gfs2_sbd * sdp );
252
- extern void gfs2_glock_add_to_lru (struct gfs2_glock * gl );
253
- extern void gfs2_glock_free (struct gfs2_glock * gl );
244
+ void gfs2_glock_cb (struct gfs2_glock * gl , unsigned int state );
245
+ void gfs2_glock_complete (struct gfs2_glock * gl , int ret );
246
+ bool gfs2_queue_try_to_evict (struct gfs2_glock * gl );
247
+ void gfs2_cancel_delete_work (struct gfs2_glock * gl );
248
+ void gfs2_flush_delete_work (struct gfs2_sbd * sdp );
249
+ void gfs2_gl_hash_clear (struct gfs2_sbd * sdp );
250
+ void gfs2_gl_dq_holders (struct gfs2_sbd * sdp );
251
+ void gfs2_glock_thaw (struct gfs2_sbd * sdp );
252
+ void gfs2_glock_add_to_lru (struct gfs2_glock * gl );
253
+ void gfs2_glock_free (struct gfs2_glock * gl );
254
254
255
- extern int __init gfs2_glock_init (void );
256
- extern void gfs2_glock_exit (void );
255
+ int __init gfs2_glock_init (void );
256
+ void gfs2_glock_exit (void );
257
257
258
- extern void gfs2_create_debugfs_file (struct gfs2_sbd * sdp );
259
- extern void gfs2_delete_debugfs_file (struct gfs2_sbd * sdp );
260
- extern void gfs2_register_debugfs (void );
261
- extern void gfs2_unregister_debugfs (void );
258
+ void gfs2_create_debugfs_file (struct gfs2_sbd * sdp );
259
+ void gfs2_delete_debugfs_file (struct gfs2_sbd * sdp );
260
+ void gfs2_register_debugfs (void );
261
+ void gfs2_unregister_debugfs (void );
262
262
263
- extern void glock_set_object (struct gfs2_glock * gl , void * object );
264
- extern void glock_clear_object (struct gfs2_glock * gl , void * object );
263
+ void glock_set_object (struct gfs2_glock * gl , void * object );
264
+ void glock_clear_object (struct gfs2_glock * gl , void * object );
265
265
266
266
extern const struct lm_lockops gfs2_dlm_ops ;
267
267
@@ -280,7 +280,7 @@ static inline bool gfs2_holder_queued(struct gfs2_holder *gh)
280
280
return !list_empty (& gh -> gh_list );
281
281
}
282
282
283
- extern void gfs2_inode_remember_delete (struct gfs2_glock * gl , u64 generation );
284
- extern bool gfs2_inode_already_deleted (struct gfs2_glock * gl , u64 generation );
283
+ void gfs2_inode_remember_delete (struct gfs2_glock * gl , u64 generation );
284
+ bool gfs2_inode_already_deleted (struct gfs2_glock * gl , u64 generation );
285
285
286
286
#endif /* __GLOCK_DOT_H__ */
0 commit comments