Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Fabian Frederick and committed by
Linus Torvalds
1da85fdf 19bdd41a

+5 -8
+1
fs/bfs/bfs.h
··· 46 46 47 47 /* inode.c */ 48 48 extern struct inode *bfs_iget(struct super_block *sb, unsigned long ino); 49 + extern void bfs_dump_imap(const char *, struct super_block *); 49 50 50 51 /* file.c */ 51 52 extern const struct inode_operations bfs_file_inops;
+1 -3
fs/bfs/dir.c
··· 75 75 .llseek = generic_file_llseek, 76 76 }; 77 77 78 - extern void dump_imap(const char *, struct super_block *); 79 - 80 78 static int bfs_create(struct inode *dir, struct dentry *dentry, umode_t mode, 81 79 bool excl) 82 80 { ··· 108 110 BFS_I(inode)->i_eblock = 0; 109 111 insert_inode_hash(inode); 110 112 mark_inode_dirty(inode); 111 - dump_imap("create", s); 113 + bfs_dump_imap("create", s); 112 114 113 115 err = bfs_add_entry(dir, dentry->d_name.name, dentry->d_name.len, 114 116 inode->i_ino);
+3 -5
fs/bfs/inode.c
··· 30 30 #define dprintf(x...) 31 31 #endif 32 32 33 - void dump_imap(const char *prefix, struct super_block *s); 34 - 35 33 struct inode *bfs_iget(struct super_block *sb, unsigned long ino) 36 34 { 37 35 struct bfs_inode *di; ··· 192 194 info->si_freeb += bi->i_eblock + 1 - bi->i_sblock; 193 195 info->si_freei++; 194 196 clear_bit(ino, info->si_imap); 195 - dump_imap("delete_inode", s); 197 + bfs_dump_imap("delete_inode", s); 196 198 } 197 199 198 200 /* ··· 295 297 .statfs = bfs_statfs, 296 298 }; 297 299 298 - void dump_imap(const char *prefix, struct super_block *s) 300 + void bfs_dump_imap(const char *prefix, struct super_block *s) 299 301 { 300 302 #ifdef DEBUG 301 303 int i; ··· 441 443 } 442 444 brelse(bh); 443 445 brelse(sbh); 444 - dump_imap("read_super", s); 446 + bfs_dump_imap("read_super", s); 445 447 return 0; 446 448 447 449 out3: