aboutsummaryrefslogtreecommitdiffstats
path: root/fs/affs
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-06 17:37:25 -0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-06 19:08:13 -0400
commit9606d9aa858aeb70f3b6062bab82eb1e5a91a923 (patch)
treec43260ed9796dbf4f5882e05e3c36cb2521f62c7 /fs/affs
parent0158de12b00e7f0e7821c706e91477b6079eb9e9 (diff)
fs/affs: pr_debug cleanup
- Remove AFFS: prefix (defined in pr_fmt) - Use __func__ - Separate format/arguments on lines > 80 characters. Signed-off-by: Fabian Frederick <fabf@skynet.be> Cc: Joe Perches <joe@perches.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/affs')
-rw-r--r--fs/affs/affs.h10
-rw-r--r--fs/affs/amigaffs.c9
-rw-r--r--fs/affs/bitmap.c8
-rw-r--r--fs/affs/dir.c8
-rw-r--r--fs/affs/file.c24
-rw-r--r--fs/affs/inode.c14
-rw-r--r--fs/affs/namei.c39
-rw-r--r--fs/affs/super.c19
-rw-r--r--fs/affs/symlink.c2
9 files changed, 74 insertions, 59 deletions
diff --git a/fs/affs/affs.h b/fs/affs/affs.h
index 347ee6fc5875..9bca88159725 100644
--- a/fs/affs/affs.h
+++ b/fs/affs/affs.h
@@ -212,7 +212,7 @@ affs_set_blocksize(struct super_block *sb, int size)
212static inline struct buffer_head * 212static inline struct buffer_head *
213affs_bread(struct super_block *sb, int block) 213affs_bread(struct super_block *sb, int block)
214{ 214{
215 pr_debug("affs_bread: %d\n", block); 215 pr_debug("%s: %d\n", __func__, block);
216 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) 216 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size)
217 return sb_bread(sb, block); 217 return sb_bread(sb, block);
218 return NULL; 218 return NULL;
@@ -220,7 +220,7 @@ affs_bread(struct super_block *sb, int block)
220static inline struct buffer_head * 220static inline struct buffer_head *
221affs_getblk(struct super_block *sb, int block) 221affs_getblk(struct super_block *sb, int block)
222{ 222{
223 pr_debug("affs_getblk: %d\n", block); 223 pr_debug("%s: %d\n", __func__, block);
224 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) 224 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size)
225 return sb_getblk(sb, block); 225 return sb_getblk(sb, block);
226 return NULL; 226 return NULL;
@@ -229,7 +229,7 @@ static inline struct buffer_head *
229affs_getzeroblk(struct super_block *sb, int block) 229affs_getzeroblk(struct super_block *sb, int block)
230{ 230{
231 struct buffer_head *bh; 231 struct buffer_head *bh;
232 pr_debug("affs_getzeroblk: %d\n", block); 232 pr_debug("%s: %d\n", __func__, block);
233 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) { 233 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) {
234 bh = sb_getblk(sb, block); 234 bh = sb_getblk(sb, block);
235 lock_buffer(bh); 235 lock_buffer(bh);
@@ -244,7 +244,7 @@ static inline struct buffer_head *
244affs_getemptyblk(struct super_block *sb, int block) 244affs_getemptyblk(struct super_block *sb, int block)
245{ 245{
246 struct buffer_head *bh; 246 struct buffer_head *bh;
247 pr_debug("affs_getemptyblk: %d\n", block); 247 pr_debug("%s: %d\n", __func__, block);
248 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) { 248 if (block >= AFFS_SB(sb)->s_reserved && block < AFFS_SB(sb)->s_partition_size) {
249 bh = sb_getblk(sb, block); 249 bh = sb_getblk(sb, block);
250 wait_on_buffer(bh); 250 wait_on_buffer(bh);
@@ -257,7 +257,7 @@ static inline void
257affs_brelse(struct buffer_head *bh) 257affs_brelse(struct buffer_head *bh)
258{ 258{
259 if (bh) 259 if (bh)
260 pr_debug("affs_brelse: %lld\n", (long long) bh->b_blocknr); 260 pr_debug("%s: %lld\n", __func__, (long long) bh->b_blocknr);
261 brelse(bh); 261 brelse(bh);
262} 262}
263 263
diff --git a/fs/affs/amigaffs.c b/fs/affs/amigaffs.c
index fa8ba6a6de4e..406b29836b19 100644
--- a/fs/affs/amigaffs.c
+++ b/fs/affs/amigaffs.c
@@ -34,7 +34,7 @@ affs_insert_hash(struct inode *dir, struct buffer_head *bh)
34 ino = bh->b_blocknr; 34 ino = bh->b_blocknr;
35 offset = affs_hash_name(sb, AFFS_TAIL(sb, bh)->name + 1, AFFS_TAIL(sb, bh)->name[0]); 35 offset = affs_hash_name(sb, AFFS_TAIL(sb, bh)->name + 1, AFFS_TAIL(sb, bh)->name[0]);
36 36
37 pr_debug("AFFS: insert_hash(dir=%u, ino=%d)\n", (u32)dir->i_ino, ino); 37 pr_debug("%s(dir=%u, ino=%d)\n", __func__, (u32)dir->i_ino, ino);
38 38
39 dir_bh = affs_bread(sb, dir->i_ino); 39 dir_bh = affs_bread(sb, dir->i_ino);
40 if (!dir_bh) 40 if (!dir_bh)
@@ -84,7 +84,8 @@ affs_remove_hash(struct inode *dir, struct buffer_head *rem_bh)
84 sb = dir->i_sb; 84 sb = dir->i_sb;
85 rem_ino = rem_bh->b_blocknr; 85 rem_ino = rem_bh->b_blocknr;
86 offset = affs_hash_name(sb, AFFS_TAIL(sb, rem_bh)->name+1, AFFS_TAIL(sb, rem_bh)->name[0]); 86 offset = affs_hash_name(sb, AFFS_TAIL(sb, rem_bh)->name+1, AFFS_TAIL(sb, rem_bh)->name[0]);
87 pr_debug("AFFS: remove_hash(dir=%d, ino=%d, hashval=%d)\n", (u32)dir->i_ino, rem_ino, offset); 87 pr_debug("%s(dir=%d, ino=%d, hashval=%d)\n",
88 __func__, (u32)dir->i_ino, rem_ino, offset);
88 89
89 bh = affs_bread(sb, dir->i_ino); 90 bh = affs_bread(sb, dir->i_ino);
90 if (!bh) 91 if (!bh)
@@ -147,7 +148,7 @@ affs_remove_link(struct dentry *dentry)
147 u32 link_ino, ino; 148 u32 link_ino, ino;
148 int retval; 149 int retval;
149 150
150 pr_debug("AFFS: remove_link(key=%ld)\n", inode->i_ino); 151 pr_debug("%s(key=%ld)\n", __func__, inode->i_ino);
151 retval = -EIO; 152 retval = -EIO;
152 bh = affs_bread(sb, inode->i_ino); 153 bh = affs_bread(sb, inode->i_ino);
153 if (!bh) 154 if (!bh)
@@ -279,7 +280,7 @@ affs_remove_header(struct dentry *dentry)
279 if (!inode) 280 if (!inode)
280 goto done; 281 goto done;
281 282
282 pr_debug("AFFS: remove_header(key=%ld)\n", inode->i_ino); 283 pr_debug("%s(key=%ld)\n", __func__, inode->i_ino);
283 retval = -EIO; 284 retval = -EIO;
284 bh = affs_bread(sb, (u32)(long)dentry->d_fsdata); 285 bh = affs_bread(sb, (u32)(long)dentry->d_fsdata);
285 if (!bh) 286 if (!bh)
diff --git a/fs/affs/bitmap.c b/fs/affs/bitmap.c
index d9559f5d2d1b..c8de51185c23 100644
--- a/fs/affs/bitmap.c
+++ b/fs/affs/bitmap.c
@@ -17,7 +17,7 @@ affs_count_free_blocks(struct super_block *sb)
17 u32 free; 17 u32 free;
18 int i; 18 int i;
19 19
20 pr_debug("AFFS: count_free_blocks()\n"); 20 pr_debug("%s()\n", __func__);
21 21
22 if (sb->s_flags & MS_RDONLY) 22 if (sb->s_flags & MS_RDONLY)
23 return 0; 23 return 0;
@@ -43,7 +43,7 @@ affs_free_block(struct super_block *sb, u32 block)
43 u32 blk, bmap, bit, mask, tmp; 43 u32 blk, bmap, bit, mask, tmp;
44 __be32 *data; 44 __be32 *data;
45 45
46 pr_debug("AFFS: free_block(%u)\n", block); 46 pr_debug("%s(%u)\n", __func__, block);
47 47
48 if (block > sbi->s_partition_size) 48 if (block > sbi->s_partition_size)
49 goto err_range; 49 goto err_range;
@@ -125,7 +125,7 @@ affs_alloc_block(struct inode *inode, u32 goal)
125 sb = inode->i_sb; 125 sb = inode->i_sb;
126 sbi = AFFS_SB(sb); 126 sbi = AFFS_SB(sb);
127 127
128 pr_debug("AFFS: balloc(inode=%lu,goal=%u): ", inode->i_ino, goal); 128 pr_debug("balloc(inode=%lu,goal=%u): ", inode->i_ino, goal);
129 129
130 if (AFFS_I(inode)->i_pa_cnt) { 130 if (AFFS_I(inode)->i_pa_cnt) {
131 pr_debug("%d\n", AFFS_I(inode)->i_lastalloc+1); 131 pr_debug("%d\n", AFFS_I(inode)->i_lastalloc+1);
@@ -291,7 +291,7 @@ int affs_init_bitmap(struct super_block *sb, int *flags)
291 *flags |= MS_RDONLY; 291 *flags |= MS_RDONLY;
292 goto out; 292 goto out;
293 } 293 }
294 pr_debug("AFFS: read bitmap block %d: %d\n", blk, bm->bm_key); 294 pr_debug("read bitmap block %d: %d\n", blk, bm->bm_key);
295 bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4); 295 bm->bm_free = memweight(bh->b_data + 4, sb->s_blocksize - 4);
296 296
297 /* Don't try read the extension if this is the last block, 297 /* Don't try read the extension if this is the last block,
diff --git a/fs/affs/dir.c b/fs/affs/dir.c
index cbbda476a805..59f07bec92a6 100644
--- a/fs/affs/dir.c
+++ b/fs/affs/dir.c
@@ -54,8 +54,8 @@ affs_readdir(struct file *file, struct dir_context *ctx)
54 u32 ino; 54 u32 ino;
55 int error = 0; 55 int error = 0;
56 56
57 pr_debug("AFFS: readdir(ino=%lu,f_pos=%lx)\n", 57 pr_debug("%s(ino=%lu,f_pos=%lx)\n",
58 inode->i_ino, (unsigned long)ctx->pos); 58 __func__, inode->i_ino, (unsigned long)ctx->pos);
59 59
60 if (ctx->pos < 2) { 60 if (ctx->pos < 2) {
61 file->private_data = (void *)0; 61 file->private_data = (void *)0;
@@ -81,7 +81,7 @@ affs_readdir(struct file *file, struct dir_context *ctx)
81 */ 81 */
82 ino = (u32)(long)file->private_data; 82 ino = (u32)(long)file->private_data;
83 if (ino && file->f_version == inode->i_version) { 83 if (ino && file->f_version == inode->i_version) {
84 pr_debug("AFFS: readdir() left off=%d\n", ino); 84 pr_debug("readdir() left off=%d\n", ino);
85 goto inside; 85 goto inside;
86 } 86 }
87 87
@@ -117,7 +117,7 @@ inside:
117 117
118 namelen = min(AFFS_TAIL(sb, fh_bh)->name[0], (u8)30); 118 namelen = min(AFFS_TAIL(sb, fh_bh)->name[0], (u8)30);
119 name = AFFS_TAIL(sb, fh_bh)->name + 1; 119 name = AFFS_TAIL(sb, fh_bh)->name + 1;
120 pr_debug("AFFS: readdir(): dir_emit(\"%.*s\", " 120 pr_debug("readdir(): dir_emit(\"%.*s\", "
121 "ino=%u), hash=%d, f_pos=%x\n", 121 "ino=%u), hash=%d, f_pos=%x\n",
122 namelen, name, ino, hash_pos, (u32)ctx->pos); 122 namelen, name, ino, hash_pos, (u32)ctx->pos);
123 123
diff --git a/fs/affs/file.c b/fs/affs/file.c
index fd168ef18516..0270303388ee 100644
--- a/fs/affs/file.c
+++ b/fs/affs/file.c
@@ -45,7 +45,7 @@ const struct inode_operations affs_file_inode_operations = {
45static int 45static int
46affs_file_open(struct inode *inode, struct file *filp) 46affs_file_open(struct inode *inode, struct file *filp)
47{ 47{
48 pr_debug("AFFS: open(%lu,%d)\n", 48 pr_debug("open(%lu,%d)\n",
49 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); 49 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt));
50 atomic_inc(&AFFS_I(inode)->i_opencnt); 50 atomic_inc(&AFFS_I(inode)->i_opencnt);
51 return 0; 51 return 0;
@@ -54,7 +54,7 @@ affs_file_open(struct inode *inode, struct file *filp)
54static int 54static int
55affs_file_release(struct inode *inode, struct file *filp) 55affs_file_release(struct inode *inode, struct file *filp)
56{ 56{
57 pr_debug("AFFS: release(%lu, %d)\n", 57 pr_debug("release(%lu, %d)\n",
58 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt)); 58 inode->i_ino, atomic_read(&AFFS_I(inode)->i_opencnt));
59 59
60 if (atomic_dec_and_test(&AFFS_I(inode)->i_opencnt)) { 60 if (atomic_dec_and_test(&AFFS_I(inode)->i_opencnt)) {
@@ -324,7 +324,8 @@ affs_get_block(struct inode *inode, sector_t block, struct buffer_head *bh_resul
324 struct buffer_head *ext_bh; 324 struct buffer_head *ext_bh;
325 u32 ext; 325 u32 ext;
326 326
327 pr_debug("AFFS: get_block(%u, %lu)\n", (u32)inode->i_ino, (unsigned long)block); 327 pr_debug("%s(%u, %lu)\n",
328 __func__, (u32)inode->i_ino, (unsigned long)block);
328 329
329 BUG_ON(block > (sector_t)0x7fffffffUL); 330 BUG_ON(block > (sector_t)0x7fffffffUL);
330 331
@@ -508,7 +509,7 @@ affs_do_readpage_ofs(struct page *page, unsigned to)
508 u32 bidx, boff, bsize; 509 u32 bidx, boff, bsize;
509 u32 tmp; 510 u32 tmp;
510 511
511 pr_debug("AFFS: read_page(%u, %ld, 0, %d)\n", (u32)inode->i_ino, 512 pr_debug("%s(%u, %ld, 0, %d)\n", __func__, (u32)inode->i_ino,
512 page->index, to); 513 page->index, to);
513 BUG_ON(to > PAGE_CACHE_SIZE); 514 BUG_ON(to > PAGE_CACHE_SIZE);
514 kmap(page); 515 kmap(page);
@@ -544,7 +545,7 @@ affs_extent_file_ofs(struct inode *inode, u32 newsize)
544 u32 size, bsize; 545 u32 size, bsize;
545 u32 tmp; 546 u32 tmp;
546 547
547 pr_debug("AFFS: extent_file(%u, %d)\n", (u32)inode->i_ino, newsize); 548 pr_debug("%s(%u, %d)\n", __func__, (u32)inode->i_ino, newsize);
548 bsize = AFFS_SB(sb)->s_data_blksize; 549 bsize = AFFS_SB(sb)->s_data_blksize;
549 bh = NULL; 550 bh = NULL;
550 size = AFFS_I(inode)->mmu_private; 551 size = AFFS_I(inode)->mmu_private;
@@ -610,7 +611,7 @@ affs_readpage_ofs(struct file *file, struct page *page)
610 u32 to; 611 u32 to;
611 int err; 612 int err;
612 613
613 pr_debug("AFFS: read_page(%u, %ld)\n", (u32)inode->i_ino, page->index); 614 pr_debug("%s(%u, %ld)\n", __func__, (u32)inode->i_ino, page->index);
614 to = PAGE_CACHE_SIZE; 615 to = PAGE_CACHE_SIZE;
615 if (((page->index + 1) << PAGE_CACHE_SHIFT) > inode->i_size) { 616 if (((page->index + 1) << PAGE_CACHE_SHIFT) > inode->i_size) {
616 to = inode->i_size & ~PAGE_CACHE_MASK; 617 to = inode->i_size & ~PAGE_CACHE_MASK;
@@ -633,7 +634,8 @@ static int affs_write_begin_ofs(struct file *file, struct address_space *mapping
633 pgoff_t index; 634 pgoff_t index;
634 int err = 0; 635 int err = 0;
635 636
636 pr_debug("AFFS: write_begin(%u, %llu, %llu)\n", (u32)inode->i_ino, (unsigned long long)pos, (unsigned long long)pos + len); 637 pr_debug("%s(%u, %llu, %llu)\n", __func__, (u32)inode->i_ino,
638 (unsigned long long)pos, (unsigned long long)pos + len);
637 if (pos > AFFS_I(inode)->mmu_private) { 639 if (pos > AFFS_I(inode)->mmu_private) {
638 /* XXX: this probably leaves a too-big i_size in case of 640 /* XXX: this probably leaves a too-big i_size in case of
639 * failure. Should really be updating i_size at write_end time 641 * failure. Should really be updating i_size at write_end time
@@ -682,7 +684,9 @@ static int affs_write_end_ofs(struct file *file, struct address_space *mapping,
682 * due to write_begin. 684 * due to write_begin.
683 */ 685 */
684 686
685 pr_debug("AFFS: write_begin(%u, %llu, %llu)\n", (u32)inode->i_ino, (unsigned long long)pos, (unsigned long long)pos + len); 687 pr_debug("%s(%u, %llu, %llu)\n",
688 __func__, (u32)inode->i_ino, (unsigned long long)pos,
689 (unsigned long long)pos + len);
686 bsize = AFFS_SB(sb)->s_data_blksize; 690 bsize = AFFS_SB(sb)->s_data_blksize;
687 data = page_address(page); 691 data = page_address(page);
688 692
@@ -804,7 +808,7 @@ affs_free_prealloc(struct inode *inode)
804{ 808{
805 struct super_block *sb = inode->i_sb; 809 struct super_block *sb = inode->i_sb;
806 810
807 pr_debug("AFFS: free_prealloc(ino=%lu)\n", inode->i_ino); 811 pr_debug("free_prealloc(ino=%lu)\n", inode->i_ino);
808 812
809 while (AFFS_I(inode)->i_pa_cnt) { 813 while (AFFS_I(inode)->i_pa_cnt) {
810 AFFS_I(inode)->i_pa_cnt--; 814 AFFS_I(inode)->i_pa_cnt--;
@@ -824,7 +828,7 @@ affs_truncate(struct inode *inode)
824 struct buffer_head *ext_bh; 828 struct buffer_head *ext_bh;
825 int i; 829 int i;
826 830
827 pr_debug("AFFS: truncate(inode=%d, oldsize=%u, newsize=%u)\n", 831 pr_debug("truncate(inode=%d, oldsize=%u, newsize=%u)\n",
828 (u32)inode->i_ino, (u32)AFFS_I(inode)->mmu_private, (u32)inode->i_size); 832 (u32)inode->i_ino, (u32)AFFS_I(inode)->mmu_private, (u32)inode->i_size);
829 833
830 last_blk = 0; 834 last_blk = 0;
diff --git a/fs/affs/inode.c b/fs/affs/inode.c
index 96df91e8c334..bec2d1a0c91c 100644
--- a/fs/affs/inode.c
+++ b/fs/affs/inode.c
@@ -34,7 +34,7 @@ struct inode *affs_iget(struct super_block *sb, unsigned long ino)
34 if (!(inode->i_state & I_NEW)) 34 if (!(inode->i_state & I_NEW))
35 return inode; 35 return inode;
36 36
37 pr_debug("AFFS: affs_iget(%lu)\n", inode->i_ino); 37 pr_debug("affs_iget(%lu)\n", inode->i_ino);
38 38
39 block = inode->i_ino; 39 block = inode->i_ino;
40 bh = affs_bread(sb, block); 40 bh = affs_bread(sb, block);
@@ -175,7 +175,7 @@ affs_write_inode(struct inode *inode, struct writeback_control *wbc)
175 uid_t uid; 175 uid_t uid;
176 gid_t gid; 176 gid_t gid;
177 177
178 pr_debug("AFFS: write_inode(%lu)\n",inode->i_ino); 178 pr_debug("write_inode(%lu)\n", inode->i_ino);
179 179
180 if (!inode->i_nlink) 180 if (!inode->i_nlink)
181 // possibly free block 181 // possibly free block
@@ -220,7 +220,7 @@ affs_notify_change(struct dentry *dentry, struct iattr *attr)
220 struct inode *inode = dentry->d_inode; 220 struct inode *inode = dentry->d_inode;
221 int error; 221 int error;
222 222
223 pr_debug("AFFS: notify_change(%lu,0x%x)\n",inode->i_ino,attr->ia_valid); 223 pr_debug("notify_change(%lu,0x%x)\n", inode->i_ino, attr->ia_valid);
224 224
225 error = inode_change_ok(inode,attr); 225 error = inode_change_ok(inode,attr);
226 if (error) 226 if (error)
@@ -258,7 +258,8 @@ void
258affs_evict_inode(struct inode *inode) 258affs_evict_inode(struct inode *inode)
259{ 259{
260 unsigned long cache_page; 260 unsigned long cache_page;
261 pr_debug("AFFS: evict_inode(ino=%lu, nlink=%u)\n", inode->i_ino, inode->i_nlink); 261 pr_debug("evict_inode(ino=%lu, nlink=%u)\n",
262 inode->i_ino, inode->i_nlink);
262 truncate_inode_pages_final(&inode->i_data); 263 truncate_inode_pages_final(&inode->i_data);
263 264
264 if (!inode->i_nlink) { 265 if (!inode->i_nlink) {
@@ -271,7 +272,7 @@ affs_evict_inode(struct inode *inode)
271 affs_free_prealloc(inode); 272 affs_free_prealloc(inode);
272 cache_page = (unsigned long)AFFS_I(inode)->i_lc; 273 cache_page = (unsigned long)AFFS_I(inode)->i_lc;
273 if (cache_page) { 274 if (cache_page) {
274 pr_debug("AFFS: freeing ext cache\n"); 275 pr_debug("freeing ext cache\n");
275 AFFS_I(inode)->i_lc = NULL; 276 AFFS_I(inode)->i_lc = NULL;
276 AFFS_I(inode)->i_ac = NULL; 277 AFFS_I(inode)->i_ac = NULL;
277 free_page(cache_page); 278 free_page(cache_page);
@@ -350,7 +351,8 @@ affs_add_entry(struct inode *dir, struct inode *inode, struct dentry *dentry, s3
350 u32 block = 0; 351 u32 block = 0;
351 int retval; 352 int retval;
352 353
353 pr_debug("AFFS: add_entry(dir=%u, inode=%u, \"%*s\", type=%d)\n", (u32)dir->i_ino, 354 pr_debug("%s(dir=%u, inode=%u, \"%*s\", type=%d)\n",
355 __func__, (u32)dir->i_ino,
354 (u32)inode->i_ino, (int)dentry->d_name.len, dentry->d_name.name, type); 356 (u32)inode->i_ino, (int)dentry->d_name.len, dentry->d_name.name, type);
355 357
356 retval = -EIO; 358 retval = -EIO;
diff --git a/fs/affs/namei.c b/fs/affs/namei.c
index 6dae1ccd176d..035bd31556fc 100644
--- a/fs/affs/namei.c
+++ b/fs/affs/namei.c
@@ -190,7 +190,8 @@ affs_find_entry(struct inode *dir, struct dentry *dentry)
190 toupper_t toupper = affs_get_toupper(sb); 190 toupper_t toupper = affs_get_toupper(sb);
191 u32 key; 191 u32 key;
192 192
193 pr_debug("AFFS: find_entry(\"%.*s\")\n", (int)dentry->d_name.len, dentry->d_name.name); 193 pr_debug("%s(\"%.*s\")\n",
194 __func__, (int)dentry->d_name.len, dentry->d_name.name);
194 195
195 bh = affs_bread(sb, dir->i_ino); 196 bh = affs_bread(sb, dir->i_ino);
196 if (!bh) 197 if (!bh)
@@ -218,7 +219,8 @@ affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
218 struct buffer_head *bh; 219 struct buffer_head *bh;
219 struct inode *inode = NULL; 220 struct inode *inode = NULL;
220 221
221 pr_debug("AFFS: lookup(\"%.*s\")\n",(int)dentry->d_name.len,dentry->d_name.name); 222 pr_debug("%s(\"%.*s\")\n",
223 __func__, (int)dentry->d_name.len, dentry->d_name.name);
222 224
223 affs_lock_dir(dir); 225 affs_lock_dir(dir);
224 bh = affs_find_entry(dir, dentry); 226 bh = affs_find_entry(dir, dentry);
@@ -248,9 +250,9 @@ affs_lookup(struct inode *dir, struct dentry *dentry, unsigned int flags)
248int 250int
249affs_unlink(struct inode *dir, struct dentry *dentry) 251affs_unlink(struct inode *dir, struct dentry *dentry)
250{ 252{
251 pr_debug("AFFS: unlink(dir=%d, %lu \"%.*s\")\n", (u32)dir->i_ino, 253 pr_debug("%s(dir=%d, %lu \"%.*s\")\n",
252 dentry->d_inode->i_ino, 254 __func__, (u32)dir->i_ino, dentry->d_inode->i_ino,
253 (int)dentry->d_name.len, dentry->d_name.name); 255 (int)dentry->d_name.len, dentry->d_name.name);
254 256
255 return affs_remove_header(dentry); 257 return affs_remove_header(dentry);
256} 258}
@@ -262,7 +264,8 @@ affs_create(struct inode *dir, struct dentry *dentry, umode_t mode, bool excl)
262 struct inode *inode; 264 struct inode *inode;
263 int error; 265 int error;
264 266
265 pr_debug("AFFS: create(%lu,\"%.*s\",0%ho)\n",dir->i_ino,(int)dentry->d_name.len, 267 pr_debug("%s(%lu,\"%.*s\",0%ho)\n",
268 __func__, dir->i_ino, (int)dentry->d_name.len,
266 dentry->d_name.name,mode); 269 dentry->d_name.name,mode);
267 270
268 inode = affs_new_inode(dir); 271 inode = affs_new_inode(dir);
@@ -291,8 +294,9 @@ affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
291 struct inode *inode; 294 struct inode *inode;
292 int error; 295 int error;
293 296
294 pr_debug("AFFS: mkdir(%lu,\"%.*s\",0%ho)\n",dir->i_ino, 297 pr_debug("%s(%lu,\"%.*s\",0%ho)\n",
295 (int)dentry->d_name.len,dentry->d_name.name,mode); 298 __func__, dir->i_ino, (int)dentry->d_name.len,
299 dentry->d_name.name, mode);
296 300
297 inode = affs_new_inode(dir); 301 inode = affs_new_inode(dir);
298 if (!inode) 302 if (!inode)
@@ -317,8 +321,8 @@ affs_mkdir(struct inode *dir, struct dentry *dentry, umode_t mode)
317int 321int
318affs_rmdir(struct inode *dir, struct dentry *dentry) 322affs_rmdir(struct inode *dir, struct dentry *dentry)
319{ 323{
320 pr_debug("AFFS: rmdir(dir=%u, %lu \"%.*s\")\n", (u32)dir->i_ino, 324 pr_debug("%s(dir=%u, %lu \"%.*s\")\n",
321 dentry->d_inode->i_ino, 325 __func__, (u32)dir->i_ino, dentry->d_inode->i_ino,
322 (int)dentry->d_name.len, dentry->d_name.name); 326 (int)dentry->d_name.len, dentry->d_name.name);
323 327
324 return affs_remove_header(dentry); 328 return affs_remove_header(dentry);
@@ -334,8 +338,9 @@ affs_symlink(struct inode *dir, struct dentry *dentry, const char *symname)
334 int i, maxlen, error; 338 int i, maxlen, error;
335 char c, lc; 339 char c, lc;
336 340
337 pr_debug("AFFS: symlink(%lu,\"%.*s\" -> \"%s\")\n",dir->i_ino, 341 pr_debug("%s(%lu,\"%.*s\" -> \"%s\")\n",
338 (int)dentry->d_name.len,dentry->d_name.name,symname); 342 __func__, dir->i_ino, (int)dentry->d_name.len,
343 dentry->d_name.name, symname);
339 344
340 maxlen = AFFS_SB(sb)->s_hashsize * sizeof(u32) - 1; 345 maxlen = AFFS_SB(sb)->s_hashsize * sizeof(u32) - 1;
341 inode = affs_new_inode(dir); 346 inode = affs_new_inode(dir);
@@ -404,7 +409,8 @@ affs_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
404{ 409{
405 struct inode *inode = old_dentry->d_inode; 410 struct inode *inode = old_dentry->d_inode;
406 411
407 pr_debug("AFFS: link(%u, %u, \"%.*s\")\n", (u32)inode->i_ino, (u32)dir->i_ino, 412 pr_debug("%s(%u, %u, \"%.*s\")\n",
413 __func__, (u32)inode->i_ino, (u32)dir->i_ino,
408 (int)dentry->d_name.len,dentry->d_name.name); 414 (int)dentry->d_name.len,dentry->d_name.name);
409 415
410 return affs_add_entry(dir, inode, dentry, ST_LINKFILE); 416 return affs_add_entry(dir, inode, dentry, ST_LINKFILE);
@@ -418,9 +424,10 @@ affs_rename(struct inode *old_dir, struct dentry *old_dentry,
418 struct buffer_head *bh = NULL; 424 struct buffer_head *bh = NULL;
419 int retval; 425 int retval;
420 426
421 pr_debug("AFFS: rename(old=%u,\"%*s\" to new=%u,\"%*s\")\n", 427 pr_debug("%s(old=%u,\"%*s\" to new=%u,\"%*s\")\n",
422 (u32)old_dir->i_ino, (int)old_dentry->d_name.len, old_dentry->d_name.name, 428 __func__, (u32)old_dir->i_ino, (int)old_dentry->d_name.len,
423 (u32)new_dir->i_ino, (int)new_dentry->d_name.len, new_dentry->d_name.name); 429 old_dentry->d_name.name, (u32)new_dir->i_ino,
430 (int)new_dentry->d_name.len, new_dentry->d_name.name);
424 431
425 retval = affs_check_name(new_dentry->d_name.name, 432 retval = affs_check_name(new_dentry->d_name.name,
426 new_dentry->d_name.len, 433 new_dentry->d_name.len,
diff --git a/fs/affs/super.c b/fs/affs/super.c
index 507791263ec8..51f1a95bff73 100644
--- a/fs/affs/super.c
+++ b/fs/affs/super.c
@@ -46,7 +46,7 @@ static void
46affs_put_super(struct super_block *sb) 46affs_put_super(struct super_block *sb)
47{ 47{
48 struct affs_sb_info *sbi = AFFS_SB(sb); 48 struct affs_sb_info *sbi = AFFS_SB(sb);
49 pr_debug("AFFS: put_super()\n"); 49 pr_debug("%s()\n", __func__);
50 50
51 cancel_delayed_work_sync(&sbi->sb_work); 51 cancel_delayed_work_sync(&sbi->sb_work);
52} 52}
@@ -319,7 +319,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
319 319
320 save_mount_options(sb, data); 320 save_mount_options(sb, data);
321 321
322 pr_debug("AFFS: read_super(%s)\n",data ? (const char *)data : "no options"); 322 pr_debug("read_super(%s)\n", data ? (const char *)data : "no options");
323 323
324 sb->s_magic = AFFS_SUPER_MAGIC; 324 sb->s_magic = AFFS_SUPER_MAGIC;
325 sb->s_op = &affs_sops; 325 sb->s_op = &affs_sops;
@@ -356,7 +356,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
356 */ 356 */
357 357
358 size = sb->s_bdev->bd_inode->i_size >> 9; 358 size = sb->s_bdev->bd_inode->i_size >> 9;
359 pr_debug("AFFS: initial blocksize=%d, #blocks=%d\n", 512, size); 359 pr_debug("initial blocksize=%d, #blocks=%d\n", 512, size);
360 360
361 affs_set_blocksize(sb, PAGE_SIZE); 361 affs_set_blocksize(sb, PAGE_SIZE);
362 /* Try to find root block. Its location depends on the block size. */ 362 /* Try to find root block. Its location depends on the block size. */
@@ -371,7 +371,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
371 sbi->s_root_block = root_block; 371 sbi->s_root_block = root_block;
372 if (root_block < 0) 372 if (root_block < 0)
373 sbi->s_root_block = (reserved + size - 1) / 2; 373 sbi->s_root_block = (reserved + size - 1) / 2;
374 pr_debug("AFFS: setting blocksize to %d\n", blocksize); 374 pr_debug("setting blocksize to %d\n", blocksize);
375 affs_set_blocksize(sb, blocksize); 375 affs_set_blocksize(sb, blocksize);
376 sbi->s_partition_size = size; 376 sbi->s_partition_size = size;
377 377
@@ -386,7 +386,7 @@ static int affs_fill_super(struct super_block *sb, void *data, int silent)
386 * block behind the calculated one. So we check this one, too. 386 * block behind the calculated one. So we check this one, too.
387 */ 387 */
388 for (num_bm = 0; num_bm < 2; num_bm++) { 388 for (num_bm = 0; num_bm < 2; num_bm++) {
389 pr_debug("AFFS: Dev %s, trying root=%u, bs=%d, " 389 pr_debug("Dev %s, trying root=%u, bs=%d, "
390 "size=%d, reserved=%d\n", 390 "size=%d, reserved=%d\n",
391 sb->s_id, 391 sb->s_id,
392 sbi->s_root_block + num_bm, 392 sbi->s_root_block + num_bm,
@@ -508,7 +508,7 @@ got_root:
508 return -ENOMEM; 508 return -ENOMEM;
509 } 509 }
510 510
511 pr_debug("AFFS: s_flags=%lX\n",sb->s_flags); 511 pr_debug("s_flags=%lX\n", sb->s_flags);
512 return 0; 512 return 0;
513} 513}
514 514
@@ -528,7 +528,7 @@ affs_remount(struct super_block *sb, int *flags, char *data)
528 char volume[32]; 528 char volume[32];
529 char *prefix = NULL; 529 char *prefix = NULL;
530 530
531 pr_debug("AFFS: remount(flags=0x%x,opts=\"%s\")\n",*flags,data); 531 pr_debug("%s(flags=0x%x,opts=\"%s\")\n", __func__, *flags, data);
532 532
533 sync_filesystem(sb); 533 sync_filesystem(sb);
534 *flags |= MS_NODIRATIME; 534 *flags |= MS_NODIRATIME;
@@ -576,8 +576,9 @@ affs_statfs(struct dentry *dentry, struct kstatfs *buf)
576 int free; 576 int free;
577 u64 id = huge_encode_dev(sb->s_bdev->bd_dev); 577 u64 id = huge_encode_dev(sb->s_bdev->bd_dev);
578 578
579 pr_debug("AFFS: statfs() partsize=%d, reserved=%d\n",AFFS_SB(sb)->s_partition_size, 579 pr_debug("%s() partsize=%d, reserved=%d\n",
580 AFFS_SB(sb)->s_reserved); 580 __func__, AFFS_SB(sb)->s_partition_size,
581 AFFS_SB(sb)->s_reserved);
581 582
582 free = affs_count_free_blocks(sb); 583 free = affs_count_free_blocks(sb);
583 buf->f_type = AFFS_SUPER_MAGIC; 584 buf->f_type = AFFS_SUPER_MAGIC;
diff --git a/fs/affs/symlink.c b/fs/affs/symlink.c
index ee00f08c4f53..f39b71c3981e 100644
--- a/fs/affs/symlink.c
+++ b/fs/affs/symlink.c
@@ -21,7 +21,7 @@ static int affs_symlink_readpage(struct file *file, struct page *page)
21 char c; 21 char c;
22 char lc; 22 char lc;
23 23
24 pr_debug("AFFS: follow_link(ino=%lu)\n",inode->i_ino); 24 pr_debug("follow_link(ino=%lu)\n", inode->i_ino);
25 25
26 err = -EIO; 26 err = -EIO;
27 bh = affs_bread(inode->i_sb, inode->i_ino); 27 bh = affs_bread(inode->i_sb, inode->i_ino);