fs/bfs: use bfs prefix for dump_imap
All bfs related functions use bfs_ prefix. This patch also moves extern declaration to bfs.h and removes prototype from inode.c This fixes checkpatch warning: WARNING: externs should be avoided in .c files Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: "Tigran A. Aivazian" <tigran@aivazian.fsnet.co.uk> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
19bdd41a57
commit
1da85fdff5
3 changed files with 5 additions and 8 deletions
|
@ -46,6 +46,7 @@ static inline struct bfs_inode_info *BFS_I(struct inode *inode)
|
||||||
|
|
||||||
/* inode.c */
|
/* inode.c */
|
||||||
extern struct inode *bfs_iget(struct super_block *sb, unsigned long ino);
|
extern struct inode *bfs_iget(struct super_block *sb, unsigned long ino);
|
||||||
|
extern void bfs_dump_imap(const char *, struct super_block *);
|
||||||
|
|
||||||
/* file.c */
|
/* file.c */
|
||||||
extern const struct inode_operations bfs_file_inops;
|
extern const struct inode_operations bfs_file_inops;
|
||||||
|
|
|
@ -75,8 +75,6 @@ const struct file_operations bfs_dir_operations = {
|
||||||
.llseek = generic_file_llseek,
|
.llseek = generic_file_llseek,
|
||||||
};
|
};
|
||||||
|
|
||||||
extern void dump_imap(const char *, struct super_block *);
|
|
||||||
|
|
||||||
static int bfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
|
static int bfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
|
||||||
bool excl)
|
bool excl)
|
||||||
{
|
{
|
||||||
|
@ -110,7 +108,7 @@ static int bfs_create(struct inode *dir, struct dentry *dentry, umode_t mode,
|
||||||
BFS_I(inode)->i_eblock = 0;
|
BFS_I(inode)->i_eblock = 0;
|
||||||
insert_inode_hash(inode);
|
insert_inode_hash(inode);
|
||||||
mark_inode_dirty(inode);
|
mark_inode_dirty(inode);
|
||||||
dump_imap("create", s);
|
bfs_dump_imap("create", s);
|
||||||
|
|
||||||
err = bfs_add_entry(dir, dentry->d_name.name, dentry->d_name.len,
|
err = bfs_add_entry(dir, dentry->d_name.name, dentry->d_name.len,
|
||||||
inode->i_ino);
|
inode->i_ino);
|
||||||
|
|
|
@ -30,8 +30,6 @@ MODULE_LICENSE("GPL");
|
||||||
#define dprintf(x...)
|
#define dprintf(x...)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
void dump_imap(const char *prefix, struct super_block *s);
|
|
||||||
|
|
||||||
struct inode *bfs_iget(struct super_block *sb, unsigned long ino)
|
struct inode *bfs_iget(struct super_block *sb, unsigned long ino)
|
||||||
{
|
{
|
||||||
struct bfs_inode *di;
|
struct bfs_inode *di;
|
||||||
|
@ -194,7 +192,7 @@ static void bfs_evict_inode(struct inode *inode)
|
||||||
info->si_freeb += bi->i_eblock + 1 - bi->i_sblock;
|
info->si_freeb += bi->i_eblock + 1 - bi->i_sblock;
|
||||||
info->si_freei++;
|
info->si_freei++;
|
||||||
clear_bit(ino, info->si_imap);
|
clear_bit(ino, info->si_imap);
|
||||||
dump_imap("delete_inode", s);
|
bfs_dump_imap("delete_inode", s);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -297,7 +295,7 @@ static const struct super_operations bfs_sops = {
|
||||||
.statfs = bfs_statfs,
|
.statfs = bfs_statfs,
|
||||||
};
|
};
|
||||||
|
|
||||||
void dump_imap(const char *prefix, struct super_block *s)
|
void bfs_dump_imap(const char *prefix, struct super_block *s)
|
||||||
{
|
{
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
int i;
|
int i;
|
||||||
|
@ -443,7 +441,7 @@ static int bfs_fill_super(struct super_block *s, void *data, int silent)
|
||||||
}
|
}
|
||||||
brelse(bh);
|
brelse(bh);
|
||||||
brelse(sbh);
|
brelse(sbh);
|
||||||
dump_imap("read_super", s);
|
bfs_dump_imap("read_super", s);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
out3:
|
out3:
|
||||||
|
|
Loading…
Add table
Reference in a new issue