aboutsummaryrefslogtreecommitdiffstats
path: root/fs/affs/super.c
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/super.c
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/super.c')
-rw-r--r--fs/affs/super.c19
1 files changed, 10 insertions, 9 deletions
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;