Skip to content

Commit 0b2355f

Browse files
author
Andreas Gruenbacher
committed
gfs2: No longer use 'extern' in function declarations
For non-static function declarations, external linkage is implied and the 'extern' keyword isn't needed. Some static checkers complain about the overuse of 'extern', so clean up all the function declarations. In addition, remove 'extern' from the definition of free_local_statfs_inodes(); it isn't needed there, either. Signed-off-by: Andreas Gruenbacher <[email protected]>
1 parent 062fb90 commit 0b2355f

File tree

19 files changed

+289
-285
lines changed

19 files changed

+289
-285
lines changed

fs/gfs2/acl.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@
1111

1212
#define GFS2_ACL_MAX_ENTRIES(sdp) ((300 << (sdp)->sd_sb.sb_bsize_shift) >> 12)
1313

14-
extern struct posix_acl *gfs2_get_acl(struct inode *inode, int type, bool rcu);
15-
extern int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
16-
extern int gfs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
17-
struct posix_acl *acl, int type);
14+
struct posix_acl *gfs2_get_acl(struct inode *inode, int type, bool rcu);
15+
int __gfs2_set_acl(struct inode *inode, struct posix_acl *acl, int type);
16+
int gfs2_set_acl(struct mnt_idmap *idmap, struct dentry *dentry,
17+
struct posix_acl *acl, int type);
1818

1919
#endif /* __ACL_DOT_H__ */

fs/gfs2/aops.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88

99
#include "incore.h"
1010

11-
extern void adjust_fs_space(struct inode *inode);
12-
extern void gfs2_trans_add_databufs(struct gfs2_inode *ip, struct folio *folio,
13-
size_t from, size_t len);
11+
void adjust_fs_space(struct inode *inode);
12+
void gfs2_trans_add_databufs(struct gfs2_inode *ip, struct folio *folio,
13+
size_t from, size_t len);
1414

1515
#endif /* __AOPS_DOT_H__ */

fs/gfs2/bmap.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -46,24 +46,24 @@ static inline void gfs2_write_calc_reserv(const struct gfs2_inode *ip,
4646
extern const struct iomap_ops gfs2_iomap_ops;
4747
extern const struct iomap_writeback_ops gfs2_writeback_ops;
4848

49-
extern int gfs2_unstuff_dinode(struct gfs2_inode *ip);
50-
extern int gfs2_block_map(struct inode *inode, sector_t lblock,
51-
struct buffer_head *bh, int create);
52-
extern int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length,
53-
struct iomap *iomap);
54-
extern int gfs2_iomap_alloc(struct inode *inode, loff_t pos, loff_t length,
55-
struct iomap *iomap);
56-
extern int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock,
57-
unsigned int *extlen);
58-
extern int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock,
59-
unsigned *extlen, bool *new);
60-
extern int gfs2_setattr_size(struct inode *inode, u64 size);
61-
extern int gfs2_truncatei_resume(struct gfs2_inode *ip);
62-
extern int gfs2_file_dealloc(struct gfs2_inode *ip);
63-
extern int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
64-
unsigned int len);
65-
extern int gfs2_map_journal_extents(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd);
66-
extern void gfs2_free_journal_extents(struct gfs2_jdesc *jd);
67-
extern int __gfs2_punch_hole(struct file *file, loff_t offset, loff_t length);
49+
int gfs2_unstuff_dinode(struct gfs2_inode *ip);
50+
int gfs2_block_map(struct inode *inode, sector_t lblock,
51+
struct buffer_head *bh, int create);
52+
int gfs2_iomap_get(struct inode *inode, loff_t pos, loff_t length,
53+
struct iomap *iomap);
54+
int gfs2_iomap_alloc(struct inode *inode, loff_t pos, loff_t length,
55+
struct iomap *iomap);
56+
int gfs2_get_extent(struct inode *inode, u64 lblock, u64 *dblock,
57+
unsigned int *extlen);
58+
int gfs2_alloc_extent(struct inode *inode, u64 lblock, u64 *dblock,
59+
unsigned *extlen, bool *new);
60+
int gfs2_setattr_size(struct inode *inode, u64 size);
61+
int gfs2_truncatei_resume(struct gfs2_inode *ip);
62+
int gfs2_file_dealloc(struct gfs2_inode *ip);
63+
int gfs2_write_alloc_required(struct gfs2_inode *ip, u64 offset,
64+
unsigned int len);
65+
int gfs2_map_journal_extents(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd);
66+
void gfs2_free_journal_extents(struct gfs2_jdesc *jd);
67+
int __gfs2_punch_hole(struct file *file, loff_t offset, loff_t length);
6868

6969
#endif /* __BMAP_DOT_H__ */

fs/gfs2/dir.h

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -23,32 +23,32 @@ struct gfs2_diradd {
2323
int save_loc;
2424
};
2525

26-
extern struct inode *gfs2_dir_search(struct inode *dir,
27-
const struct qstr *filename,
28-
bool fail_on_exist);
29-
extern int gfs2_dir_check(struct inode *dir, const struct qstr *filename,
30-
const struct gfs2_inode *ip);
31-
extern int gfs2_dir_add(struct inode *inode, const struct qstr *filename,
32-
const struct gfs2_inode *ip, struct gfs2_diradd *da);
26+
struct inode *gfs2_dir_search(struct inode *dir,
27+
const struct qstr *filename,
28+
bool fail_on_exist);
29+
int gfs2_dir_check(struct inode *dir, const struct qstr *filename,
30+
const struct gfs2_inode *ip);
31+
int gfs2_dir_add(struct inode *inode, const struct qstr *filename,
32+
const struct gfs2_inode *ip, struct gfs2_diradd *da);
3333
static inline void gfs2_dir_no_add(struct gfs2_diradd *da)
3434
{
3535
brelse(da->bh);
3636
da->bh = NULL;
3737
}
38-
extern int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry);
39-
extern int gfs2_dir_read(struct inode *inode, struct dir_context *ctx,
40-
struct file_ra_state *f_ra);
41-
extern int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename,
42-
const struct gfs2_inode *nip, unsigned int new_type);
38+
int gfs2_dir_del(struct gfs2_inode *dip, const struct dentry *dentry);
39+
int gfs2_dir_read(struct inode *inode, struct dir_context *ctx,
40+
struct file_ra_state *f_ra);
41+
int gfs2_dir_mvino(struct gfs2_inode *dip, const struct qstr *filename,
42+
const struct gfs2_inode *nip, unsigned int new_type);
4343

44-
extern int gfs2_dir_exhash_dealloc(struct gfs2_inode *dip);
44+
int gfs2_dir_exhash_dealloc(struct gfs2_inode *dip);
4545

46-
extern int gfs2_diradd_alloc_required(struct inode *dir,
47-
const struct qstr *filename,
48-
struct gfs2_diradd *da);
49-
extern int gfs2_dir_get_new_buffer(struct gfs2_inode *ip, u64 block,
50-
struct buffer_head **bhp);
51-
extern void gfs2_dir_hash_inval(struct gfs2_inode *ip);
46+
int gfs2_diradd_alloc_required(struct inode *dir,
47+
const struct qstr *filename,
48+
struct gfs2_diradd *da);
49+
int gfs2_dir_get_new_buffer(struct gfs2_inode *ip, u64 block,
50+
struct buffer_head **bhp);
51+
void gfs2_dir_hash_inval(struct gfs2_inode *ip);
5252

5353
static inline u32 gfs2_disk_hash(const char *data, int len)
5454
{

fs/gfs2/glock.h

Lines changed: 50 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -166,40 +166,40 @@ static inline struct address_space *gfs2_glock2aspace(struct gfs2_glock *gl)
166166
return NULL;
167167
}
168168

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);
179179
static inline void gfs2_holder_init(struct gfs2_glock *gl, unsigned int state,
180180
u16 flags, struct gfs2_holder *gh) {
181181
__gfs2_holder_init(gl, state, flags, gh, _RET_IP_);
182182
}
183183

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,
203203
bool fsid);
204204
#define GLOCK_BUG_ON(gl,x) do { if (unlikely(x)) { \
205205
gfs2_dump_glock(NULL, gl, true); \
@@ -213,7 +213,7 @@ extern void gfs2_dump_glock(struct seq_file *seq, struct gfs2_glock *gl,
213213
gfs2_assert_withdraw((gl)->gl_name.ln_sbd, (x)); } } \
214214
while (0)
215215

216-
extern __printf(2, 3)
216+
__printf(2, 3)
217217
void gfs2_print_dbg(struct seq_file *seq, const char *fmt, ...);
218218

219219
/**
@@ -241,27 +241,27 @@ static inline int gfs2_glock_nq_init(struct gfs2_glock *gl,
241241
return error;
242242
}
243243

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);
254254

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);
257257

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);
262262

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);
265265

266266
extern const struct lm_lockops gfs2_dlm_ops;
267267

@@ -280,7 +280,7 @@ static inline bool gfs2_holder_queued(struct gfs2_holder *gh)
280280
return !list_empty(&gh->gh_list);
281281
}
282282

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);
285285

286286
#endif /* __GLOCK_DOT_H__ */

fs/gfs2/glops.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ extern const struct gfs2_glock_operations gfs2_quota_glops;
2222
extern const struct gfs2_glock_operations gfs2_journal_glops;
2323
extern const struct gfs2_glock_operations *gfs2_glops_list[];
2424

25-
extern int gfs2_inode_metasync(struct gfs2_glock *gl);
26-
extern void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync);
25+
int gfs2_inode_metasync(struct gfs2_glock *gl);
26+
void gfs2_ail_flush(struct gfs2_glock *gl, bool fsync);
2727

2828
#endif /* __GLOPS_DOT_H__ */

fs/gfs2/incore.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -863,7 +863,7 @@ static inline void gfs2_sbstats_inc(const struct gfs2_glock *gl, int which)
863863
preempt_enable();
864864
}
865865

866-
extern struct gfs2_rgrpd *gfs2_glock2rgrp(struct gfs2_glock *gl);
866+
struct gfs2_rgrpd *gfs2_glock2rgrp(struct gfs2_glock *gl);
867867

868868
static inline unsigned gfs2_max_stuffed_size(const struct gfs2_inode *ip)
869869
{

fs/gfs2/inode.h

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@
1313
#include "util.h"
1414

1515
bool gfs2_release_folio(struct folio *folio, gfp_t gfp_mask);
16-
extern ssize_t gfs2_internal_read(struct gfs2_inode *ip,
17-
char *buf, loff_t *pos, size_t size);
18-
extern void gfs2_set_aops(struct inode *inode);
16+
ssize_t gfs2_internal_read(struct gfs2_inode *ip,
17+
char *buf, loff_t *pos, size_t size);
18+
void gfs2_set_aops(struct inode *inode);
1919

2020
static inline int gfs2_is_stuffed(const struct gfs2_inode *ip)
2121
{
@@ -86,33 +86,33 @@ static inline int gfs2_check_internal_file_size(struct inode *inode,
8686
return -EIO;
8787
}
8888

89-
extern struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type,
90-
u64 no_addr, u64 no_formal_ino,
91-
unsigned int blktype);
92-
extern struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
93-
u64 no_formal_ino,
94-
unsigned int blktype);
95-
96-
extern int gfs2_inode_refresh(struct gfs2_inode *ip);
97-
98-
extern struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
99-
int is_root);
100-
extern int gfs2_permission(struct mnt_idmap *idmap,
101-
struct inode *inode, int mask);
102-
extern struct inode *gfs2_lookup_meta(struct inode *dip, const char *name);
103-
extern void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf);
104-
extern int gfs2_open_common(struct inode *inode, struct file *file);
105-
extern loff_t gfs2_seek_data(struct file *file, loff_t offset);
106-
extern loff_t gfs2_seek_hole(struct file *file, loff_t offset);
89+
struct inode *gfs2_inode_lookup(struct super_block *sb, unsigned type,
90+
u64 no_addr, u64 no_formal_ino,
91+
unsigned int blktype);
92+
struct inode *gfs2_lookup_by_inum(struct gfs2_sbd *sdp, u64 no_addr,
93+
u64 no_formal_ino,
94+
unsigned int blktype);
95+
96+
int gfs2_inode_refresh(struct gfs2_inode *ip);
97+
98+
struct inode *gfs2_lookupi(struct inode *dir, const struct qstr *name,
99+
int is_root);
100+
int gfs2_permission(struct mnt_idmap *idmap,
101+
struct inode *inode, int mask);
102+
struct inode *gfs2_lookup_meta(struct inode *dip, const char *name);
103+
void gfs2_dinode_out(const struct gfs2_inode *ip, void *buf);
104+
int gfs2_open_common(struct inode *inode, struct file *file);
105+
loff_t gfs2_seek_data(struct file *file, loff_t offset);
106+
loff_t gfs2_seek_hole(struct file *file, loff_t offset);
107107

108108
extern const struct file_operations gfs2_file_fops_nolock;
109109
extern const struct file_operations gfs2_dir_fops_nolock;
110110

111-
extern int gfs2_fileattr_get(struct dentry *dentry, struct fileattr *fa);
112-
extern int gfs2_fileattr_set(struct mnt_idmap *idmap,
113-
struct dentry *dentry, struct fileattr *fa);
114-
extern void gfs2_set_inode_flags(struct inode *inode);
115-
111+
int gfs2_fileattr_get(struct dentry *dentry, struct fileattr *fa);
112+
int gfs2_fileattr_set(struct mnt_idmap *idmap,
113+
struct dentry *dentry, struct fileattr *fa);
114+
void gfs2_set_inode_flags(struct inode *inode);
115+
116116
#ifdef CONFIG_GFS2_FS_LOCKING_DLM
117117
extern const struct file_operations gfs2_file_fops;
118118
extern const struct file_operations gfs2_dir_fops;

fs/gfs2/log.h

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -70,29 +70,29 @@ static inline void gfs2_ordered_add_inode(struct gfs2_inode *ip)
7070
}
7171
}
7272

73-
extern void gfs2_ordered_del_inode(struct gfs2_inode *ip);
74-
extern unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct);
75-
extern void gfs2_remove_from_ail(struct gfs2_bufdata *bd);
76-
extern bool gfs2_log_is_empty(struct gfs2_sbd *sdp);
77-
extern void gfs2_log_release_revokes(struct gfs2_sbd *sdp, unsigned int revokes);
78-
extern void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks);
79-
extern bool gfs2_log_try_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr,
80-
unsigned int *extra_revokes);
81-
extern void gfs2_log_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr,
82-
unsigned int *extra_revokes);
83-
extern void gfs2_write_log_header(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
84-
u64 seq, u32 tail, u32 lblock, u32 flags,
85-
blk_opf_t op_flags);
86-
extern void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl,
87-
u32 type);
88-
extern void gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *trans);
89-
extern void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc);
90-
extern void log_flush_wait(struct gfs2_sbd *sdp);
73+
void gfs2_ordered_del_inode(struct gfs2_inode *ip);
74+
unsigned int gfs2_struct2blk(struct gfs2_sbd *sdp, unsigned int nstruct);
75+
void gfs2_remove_from_ail(struct gfs2_bufdata *bd);
76+
bool gfs2_log_is_empty(struct gfs2_sbd *sdp);
77+
void gfs2_log_release_revokes(struct gfs2_sbd *sdp, unsigned int revokes);
78+
void gfs2_log_release(struct gfs2_sbd *sdp, unsigned int blks);
79+
bool gfs2_log_try_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr,
80+
unsigned int *extra_revokes);
81+
void gfs2_log_reserve(struct gfs2_sbd *sdp, struct gfs2_trans *tr,
82+
unsigned int *extra_revokes);
83+
void gfs2_write_log_header(struct gfs2_sbd *sdp, struct gfs2_jdesc *jd,
84+
u64 seq, u32 tail, u32 lblock, u32 flags,
85+
blk_opf_t op_flags);
86+
void gfs2_log_flush(struct gfs2_sbd *sdp, struct gfs2_glock *gl,
87+
u32 type);
88+
void gfs2_log_commit(struct gfs2_sbd *sdp, struct gfs2_trans *trans);
89+
void gfs2_ail1_flush(struct gfs2_sbd *sdp, struct writeback_control *wbc);
90+
void log_flush_wait(struct gfs2_sbd *sdp);
9191

92-
extern int gfs2_logd(void *data);
93-
extern void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
94-
extern void gfs2_glock_remove_revoke(struct gfs2_glock *gl);
95-
extern void gfs2_flush_revokes(struct gfs2_sbd *sdp);
96-
extern void gfs2_ail_drain(struct gfs2_sbd *sdp);
92+
int gfs2_logd(void *data);
93+
void gfs2_add_revoke(struct gfs2_sbd *sdp, struct gfs2_bufdata *bd);
94+
void gfs2_glock_remove_revoke(struct gfs2_glock *gl);
95+
void gfs2_flush_revokes(struct gfs2_sbd *sdp);
96+
void gfs2_ail_drain(struct gfs2_sbd *sdp);
9797

9898
#endif /* __LOG_DOT_H__ */

0 commit comments

Comments
 (0)