aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorEric Sandeen <sandeen@redhat.com>2010-02-15 14:19:27 -0500
committerTheodore Ts'o <tytso@mit.edu>2010-02-15 14:19:27 -0500
commit12062dddda450976b129dcb1bacd91acaf4d8030 (patch)
treee64590b1147639cd3629f8a977b269410cd6bd13 /fs/ext4/mballoc.c
parentf710b4b96ba292dfed2153afc47e9063b0abfd89 (diff)
ext4: move __func__ into a macro for ext4_warning, ext4_error
Just a pet peeve of mine; we had a mishash of calls with either __func__ or "function_name" and the latter tends to get out of sync. I think it's easier to just hide the __func__ in a macro, and it'll be consistent from then on. Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c27
1 files changed, 11 insertions, 16 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index d129c1039f1d..415e11f1e9ee 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -2709,8 +2709,7 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac,
2709 2709
2710 len = ac->ac_b_ex.fe_len; 2710 len = ac->ac_b_ex.fe_len;
2711 if (!ext4_data_block_valid(sbi, block, len)) { 2711 if (!ext4_data_block_valid(sbi, block, len)) {
2712 ext4_error(sb, __func__, 2712 ext4_error(sb, "Allocating blocks %llu-%llu which overlap "
2713 "Allocating blocks %llu-%llu which overlap "
2714 "fs metadata\n", block, block+len); 2713 "fs metadata\n", block, block+len);
2715 /* File system mounted not to panic on error 2714 /* File system mounted not to panic on error
2716 * Fix the bitmap and repeat the block allocation 2715 * Fix the bitmap and repeat the block allocation
@@ -3623,15 +3622,13 @@ ext4_mb_discard_group_preallocations(struct super_block *sb,
3623 3622
3624 bitmap_bh = ext4_read_block_bitmap(sb, group); 3623 bitmap_bh = ext4_read_block_bitmap(sb, group);
3625 if (bitmap_bh == NULL) { 3624 if (bitmap_bh == NULL) {
3626 ext4_error(sb, __func__, "Error in reading block " 3625 ext4_error(sb, "Error reading block bitmap for %u", group);
3627 "bitmap for %u", group);
3628 return 0; 3626 return 0;
3629 } 3627 }
3630 3628
3631 err = ext4_mb_load_buddy(sb, group, &e4b); 3629 err = ext4_mb_load_buddy(sb, group, &e4b);
3632 if (err) { 3630 if (err) {
3633 ext4_error(sb, __func__, "Error in loading buddy " 3631 ext4_error(sb, "Error loading buddy information for %u", group);
3634 "information for %u", group);
3635 put_bh(bitmap_bh); 3632 put_bh(bitmap_bh);
3636 return 0; 3633 return 0;
3637 } 3634 }
@@ -3804,15 +3801,15 @@ repeat:
3804 3801
3805 err = ext4_mb_load_buddy(sb, group, &e4b); 3802 err = ext4_mb_load_buddy(sb, group, &e4b);
3806 if (err) { 3803 if (err) {
3807 ext4_error(sb, __func__, "Error in loading buddy " 3804 ext4_error(sb, "Error loading buddy information for %u",
3808 "information for %u", group); 3805 group);
3809 continue; 3806 continue;
3810 } 3807 }
3811 3808
3812 bitmap_bh = ext4_read_block_bitmap(sb, group); 3809 bitmap_bh = ext4_read_block_bitmap(sb, group);
3813 if (bitmap_bh == NULL) { 3810 if (bitmap_bh == NULL) {
3814 ext4_error(sb, __func__, "Error in reading block " 3811 ext4_error(sb, "Error reading block bitmap for %u",
3815 "bitmap for %u", group); 3812 group);
3816 ext4_mb_release_desc(&e4b); 3813 ext4_mb_release_desc(&e4b);
3817 continue; 3814 continue;
3818 } 3815 }
@@ -4077,8 +4074,8 @@ ext4_mb_discard_lg_preallocations(struct super_block *sb,
4077 4074
4078 ext4_get_group_no_and_offset(sb, pa->pa_pstart, &group, NULL); 4075 ext4_get_group_no_and_offset(sb, pa->pa_pstart, &group, NULL);
4079 if (ext4_mb_load_buddy(sb, group, &e4b)) { 4076 if (ext4_mb_load_buddy(sb, group, &e4b)) {
4080 ext4_error(sb, __func__, "Error in loading buddy " 4077 ext4_error(sb, "Error loading buddy information for %u",
4081 "information for %u", group); 4078 group);
4082 continue; 4079 continue;
4083 } 4080 }
4084 ext4_lock_group(sb, group); 4081 ext4_lock_group(sb, group);
@@ -4478,8 +4475,7 @@ void ext4_free_blocks(handle_t *handle, struct inode *inode,
4478 es = EXT4_SB(sb)->s_es; 4475 es = EXT4_SB(sb)->s_es;
4479 if (!(flags & EXT4_FREE_BLOCKS_VALIDATED) && 4476 if (!(flags & EXT4_FREE_BLOCKS_VALIDATED) &&
4480 !ext4_data_block_valid(sbi, block, count)) { 4477 !ext4_data_block_valid(sbi, block, count)) {
4481 ext4_error(sb, __func__, 4478 ext4_error(sb, "Freeing blocks not in datazone - "
4482 "Freeing blocks not in datazone - "
4483 "block = %llu, count = %lu", block, count); 4479 "block = %llu, count = %lu", block, count);
4484 goto error_return; 4480 goto error_return;
4485 } 4481 }
@@ -4548,8 +4544,7 @@ do_more:
4548 in_range(block + count - 1, ext4_inode_table(sb, gdp), 4544 in_range(block + count - 1, ext4_inode_table(sb, gdp),
4549 EXT4_SB(sb)->s_itb_per_group)) { 4545 EXT4_SB(sb)->s_itb_per_group)) {
4550 4546
4551 ext4_error(sb, __func__, 4547 ext4_error(sb, "Freeing blocks in system zone - "
4552 "Freeing blocks in system zone - "
4553 "Block = %llu, count = %lu", block, count); 4548 "Block = %llu, count = %lu", block, count);
4554 /* err = 0. ext4_std_error should be a no op */ 4549 /* err = 0. ext4_std_error should be a no op */
4555 goto error_return; 4550 goto error_return;