@@ -182,40 +182,40 @@ static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl)
182182 return NULL ;
183183}
184184
185- extern int gfs2_glock_get (struct gfs2_sbd * sdp , u64 number ,
186- const struct gfs2_glock_operations * glops ,
187- int create , struct gfs2_glock * * glp );
188- extern struct gfs2_glock * gfs2_glock_hold (struct gfs2_glock * gl );
189- extern void gfs2_glock_put (struct gfs2_glock * gl );
190- extern void gfs2_glock_put_async (struct gfs2_glock * gl );
191-
192- extern void __gfs2_holder_init (struct gfs2_glock * gl , unsigned int state ,
193- u16 flags , struct gfs2_holder * gh ,
194- unsigned long ip );
185+ int gfs2_glock_get (struct gfs2_sbd * sdp , u64 number ,
186+ const struct gfs2_glock_operations * glops ,
187+ int create , struct gfs2_glock * * glp );
188+ struct gfs2_glock * gfs2_glock_hold (struct gfs2_glock * gl );
189+ void gfs2_glock_put (struct gfs2_glock * gl );
190+ void gfs2_glock_put_async (struct gfs2_glock * gl );
191+
192+ void __gfs2_holder_init (struct gfs2_glock * gl , unsigned int state ,
193+ u16 flags , struct gfs2_holder * gh ,
194+ unsigned long ip );
195195static inline void gfs2_holder_init (struct gfs2_glock * gl , unsigned int state ,
196196 u16 flags , struct gfs2_holder * gh ) {
197197 __gfs2_holder_init (gl , state , flags , gh , _RET_IP_ );
198198}
199199
200- extern void gfs2_holder_reinit (unsigned int state , u16 flags ,
201- struct gfs2_holder * gh );
202- extern void gfs2_holder_uninit (struct gfs2_holder * gh );
203- extern int gfs2_glock_nq (struct gfs2_holder * gh );
204- extern int gfs2_glock_poll (struct gfs2_holder * gh );
205- extern int gfs2_instantiate (struct gfs2_holder * gh );
206- extern int gfs2_glock_holder_ready (struct gfs2_holder * gh );
207- extern int gfs2_glock_wait (struct gfs2_holder * gh );
208- extern int gfs2_glock_async_wait (unsigned int num_gh , struct gfs2_holder * ghs );
209- extern void gfs2_glock_dq (struct gfs2_holder * gh );
210- extern void gfs2_glock_dq_wait (struct gfs2_holder * gh );
211- extern void gfs2_glock_dq_uninit (struct gfs2_holder * gh );
212- extern int gfs2_glock_nq_num (struct gfs2_sbd * sdp , u64 number ,
213- const struct gfs2_glock_operations * glops ,
214- unsigned int state , u16 flags ,
215- struct gfs2_holder * gh );
216- extern int gfs2_glock_nq_m (unsigned int num_gh , struct gfs2_holder * ghs );
217- extern void gfs2_glock_dq_m (unsigned int num_gh , struct gfs2_holder * ghs );
218- extern void gfs2_dump_glock (struct seq_file * seq , struct gfs2_glock * gl ,
200+ void gfs2_holder_reinit (unsigned int state , u16 flags ,
201+ struct gfs2_holder * gh );
202+ void gfs2_holder_uninit (struct gfs2_holder * gh );
203+ int gfs2_glock_nq (struct gfs2_holder * gh );
204+ int gfs2_glock_poll (struct gfs2_holder * gh );
205+ int gfs2_instantiate (struct gfs2_holder * gh );
206+ int gfs2_glock_holder_ready (struct gfs2_holder * gh );
207+ int gfs2_glock_wait (struct gfs2_holder * gh );
208+ int gfs2_glock_async_wait (unsigned int num_gh , struct gfs2_holder * ghs );
209+ void gfs2_glock_dq (struct gfs2_holder * gh );
210+ void gfs2_glock_dq_wait (struct gfs2_holder * gh );
211+ void gfs2_glock_dq_uninit (struct gfs2_holder * gh );
212+ int gfs2_glock_nq_num (struct gfs2_sbd * sdp , u64 number ,
213+ const struct gfs2_glock_operations * glops ,
214+ unsigned int state , u16 flags ,
215+ struct gfs2_holder * gh );
216+ int gfs2_glock_nq_m (unsigned int num_gh , struct gfs2_holder * ghs );
217+ void gfs2_glock_dq_m (unsigned int num_gh , struct gfs2_holder * ghs );
218+ void gfs2_dump_glock (struct seq_file * seq , struct gfs2_glock * gl ,
219219 bool fsid );
220220#define GLOCK_BUG_ON (gl ,x ) do { if (unlikely(x)) { \
221221 gfs2_dump_glock(NULL, gl, true); \
@@ -229,7 +229,7 @@ extern void gfs2_dump_glock(struct seq_file *seq, struct gfs2_glock *gl,
229229 gfs2_assert_withdraw((gl)->gl_name.ln_sbd, (x)); } } \
230230 while (0)
231231
232- extern __printf (2 , 3 )
232+ __printf (2 , 3 )
233233void gfs2_print_dbg (struct seq_file * seq , const char * fmt , ...);
234234
235235/**
@@ -257,28 +257,28 @@ static inline int gfs2_glock_nq_init(struct gfs2_glock *gl,
257257 return error ;
258258}
259259
260- extern void gfs2_glock_cb (struct gfs2_glock * gl , unsigned int state );
261- extern void gfs2_glock_complete (struct gfs2_glock * gl , int ret );
262- extern bool gfs2_queue_try_to_evict (struct gfs2_glock * gl );
263- extern bool gfs2_queue_verify_delete (struct gfs2_glock * gl , bool later );
264- extern void gfs2_cancel_delete_work (struct gfs2_glock * gl );
265- extern void gfs2_flush_delete_work (struct gfs2_sbd * sdp );
266- extern void gfs2_gl_hash_clear (struct gfs2_sbd * sdp );
267- extern void gfs2_gl_dq_holders (struct gfs2_sbd * sdp );
268- extern void gfs2_glock_thaw (struct gfs2_sbd * sdp );
269- extern void gfs2_glock_free (struct gfs2_glock * gl );
270- extern void gfs2_glock_free_later (struct gfs2_glock * gl );
271-
272- extern int __init gfs2_glock_init (void );
273- extern void gfs2_glock_exit (void );
274-
275- extern void gfs2_create_debugfs_file (struct gfs2_sbd * sdp );
276- extern void gfs2_delete_debugfs_file (struct gfs2_sbd * sdp );
277- extern void gfs2_register_debugfs (void );
278- extern void gfs2_unregister_debugfs (void );
279-
280- extern void glock_set_object (struct gfs2_glock * gl , void * object );
281- extern void glock_clear_object (struct gfs2_glock * gl , void * object );
260+ void gfs2_glock_cb (struct gfs2_glock * gl , unsigned int state );
261+ void gfs2_glock_complete (struct gfs2_glock * gl , int ret );
262+ bool gfs2_queue_try_to_evict (struct gfs2_glock * gl );
263+ bool gfs2_queue_verify_delete (struct gfs2_glock * gl , bool later );
264+ void gfs2_cancel_delete_work (struct gfs2_glock * gl );
265+ void gfs2_flush_delete_work (struct gfs2_sbd * sdp );
266+ void gfs2_gl_hash_clear (struct gfs2_sbd * sdp );
267+ void gfs2_gl_dq_holders (struct gfs2_sbd * sdp );
268+ void gfs2_glock_thaw (struct gfs2_sbd * sdp );
269+ void gfs2_glock_free (struct gfs2_glock * gl );
270+ void gfs2_glock_free_later (struct gfs2_glock * gl );
271+
272+ int __init gfs2_glock_init (void );
273+ void gfs2_glock_exit (void );
274+
275+ void gfs2_create_debugfs_file (struct gfs2_sbd * sdp );
276+ void gfs2_delete_debugfs_file (struct gfs2_sbd * sdp );
277+ void gfs2_register_debugfs (void );
278+ void gfs2_unregister_debugfs (void );
279+
280+ void glock_set_object (struct gfs2_glock * gl , void * object );
281+ void glock_clear_object (struct gfs2_glock * gl , void * object );
282282
283283extern const struct lm_lockops gfs2_dlm_ops ;
284284
@@ -297,8 +297,8 @@ static inline bool gfs2_holder_queued(struct gfs2_holder *gh)
297297 return !list_empty (& gh -> gh_list );
298298}
299299
300- extern void gfs2_inode_remember_delete (struct gfs2_glock * gl , u64 generation );
301- extern bool gfs2_inode_already_deleted (struct gfs2_glock * gl , u64 generation );
300+ void gfs2_inode_remember_delete (struct gfs2_glock * gl , u64 generation );
301+ bool gfs2_inode_already_deleted (struct gfs2_glock * gl , u64 generation );
302302
303303static inline bool glock_needs_demote (struct gfs2_glock * gl )
304304{
0 commit comments