aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ext4/mballoc.c
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-04-17 10:38:59 -0400
committerTheodore Ts'o <tytso@mit.edu>2008-04-17 10:38:59 -0400
commit46e665e9d297525d286989640cf4247cbe941df6 (patch)
tree4858cd21e48cab2b2c51839dd80378f6044d3394 /fs/ext4/mballoc.c
parent620de4e19890c623eb4ba293ec19b42e2e391b89 (diff)
ext4: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__ Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Cc: <linux-ext4@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/mballoc.c')
-rw-r--r--fs/ext4/mballoc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c
index d9136b539c1e..0b46fc0ca196 100644
--- a/fs/ext4/mballoc.c
+++ b/fs/ext4/mballoc.c
@@ -734,7 +734,7 @@ static void mb_free_blocks_double(struct inode *inode, struct ext4_buddy *e4b,
734 blocknr += 734 blocknr +=
735 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block); 735 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block);
736 736
737 ext4_error(sb, __FUNCTION__, "double-free of inode" 737 ext4_error(sb, __func__, "double-free of inode"
738 " %lu's block %llu(bit %u in group %lu)\n", 738 " %lu's block %llu(bit %u in group %lu)\n",
739 inode ? inode->i_ino : 0, blocknr, 739 inode ? inode->i_ino : 0, blocknr,
740 first + i, e4b->bd_group); 740 first + i, e4b->bd_group);
@@ -906,7 +906,7 @@ static int __mb_check_buddy(struct ext4_buddy *e4b, char *file,
906} 906}
907#undef MB_CHECK_ASSERT 907#undef MB_CHECK_ASSERT
908#define mb_check_buddy(e4b) __mb_check_buddy(e4b, \ 908#define mb_check_buddy(e4b) __mb_check_buddy(e4b, \
909 __FILE__, __FUNCTION__, __LINE__) 909 __FILE__, __func__, __LINE__)
910#else 910#else
911#define mb_check_buddy(e4b) 911#define mb_check_buddy(e4b)
912#endif 912#endif
@@ -980,7 +980,7 @@ static void ext4_mb_generate_buddy(struct super_block *sb,
980 grp->bb_fragments = fragments; 980 grp->bb_fragments = fragments;
981 981
982 if (free != grp->bb_free) { 982 if (free != grp->bb_free) {
983 ext4_error(sb, __FUNCTION__, 983 ext4_error(sb, __func__,
984 "EXT4-fs: group %lu: %u blocks in bitmap, %u in gd\n", 984 "EXT4-fs: group %lu: %u blocks in bitmap, %u in gd\n",
985 group, free, grp->bb_free); 985 group, free, grp->bb_free);
986 /* 986 /*
@@ -1366,7 +1366,7 @@ static int mb_free_blocks(struct inode *inode, struct ext4_buddy *e4b,
1366 blocknr += 1366 blocknr +=
1367 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block); 1367 le32_to_cpu(EXT4_SB(sb)->s_es->s_first_data_block);
1368 1368
1369 ext4_error(sb, __FUNCTION__, "double-free of inode" 1369 ext4_error(sb, __func__, "double-free of inode"
1370 " %lu's block %llu(bit %u in group %lu)\n", 1370 " %lu's block %llu(bit %u in group %lu)\n",
1371 inode ? inode->i_ino : 0, blocknr, block, 1371 inode ? inode->i_ino : 0, blocknr, block,
1372 e4b->bd_group); 1372 e4b->bd_group);
@@ -1847,7 +1847,7 @@ static void ext4_mb_complex_scan_group(struct ext4_allocation_context *ac,
1847 * free blocks even though group info says we 1847 * free blocks even though group info says we
1848 * we have free blocks 1848 * we have free blocks
1849 */ 1849 */
1850 ext4_error(sb, __FUNCTION__, "%d free blocks as per " 1850 ext4_error(sb, __func__, "%d free blocks as per "
1851 "group info. But bitmap says 0\n", 1851 "group info. But bitmap says 0\n",
1852 free); 1852 free);
1853 break; 1853 break;
@@ -1856,7 +1856,7 @@ static void ext4_mb_complex_scan_group(struct ext4_allocation_context *ac,
1856 mb_find_extent(e4b, 0, i, ac->ac_g_ex.fe_len, &ex); 1856 mb_find_extent(e4b, 0, i, ac->ac_g_ex.fe_len, &ex);
1857 BUG_ON(ex.fe_len <= 0); 1857 BUG_ON(ex.fe_len <= 0);
1858 if (free < ex.fe_len) { 1858 if (free < ex.fe_len) {
1859 ext4_error(sb, __FUNCTION__, "%d free blocks as per " 1859 ext4_error(sb, __func__, "%d free blocks as per "
1860 "group info. But got %d blocks\n", 1860 "group info. But got %d blocks\n",
1861 free, ex.fe_len); 1861 free, ex.fe_len);
1862 /* 1862 /*
@@ -3073,7 +3073,7 @@ ext4_mb_mark_diskspace_used(struct ext4_allocation_context *ac,
3073 in_range(block, ext4_inode_table(sb, gdp), 3073 in_range(block, ext4_inode_table(sb, gdp),
3074 EXT4_SB(sb)->s_itb_per_group)) { 3074 EXT4_SB(sb)->s_itb_per_group)) {
3075 3075
3076 ext4_error(sb, __FUNCTION__, 3076 ext4_error(sb, __func__,
3077 "Allocating block in system zone - block = %llu", 3077 "Allocating block in system zone - block = %llu",
3078 block); 3078 block);
3079 } 3079 }
@@ -3786,7 +3786,7 @@ ext4_mb_release_inode_pa(struct ext4_buddy *e4b, struct buffer_head *bitmap_bh,
3786 pa, (unsigned long) pa->pa_lstart, 3786 pa, (unsigned long) pa->pa_lstart,
3787 (unsigned long) pa->pa_pstart, 3787 (unsigned long) pa->pa_pstart,
3788 (unsigned long) pa->pa_len); 3788 (unsigned long) pa->pa_len);
3789 ext4_error(sb, __FUNCTION__, "free %u, pa_free %u\n", 3789 ext4_error(sb, __func__, "free %u, pa_free %u\n",
3790 free, pa->pa_free); 3790 free, pa->pa_free);
3791 /* 3791 /*
3792 * pa is already deleted so we use the value obtained 3792 * pa is already deleted so we use the value obtained
@@ -4490,7 +4490,7 @@ void ext4_mb_free_blocks(handle_t *handle, struct inode *inode,
4490 if (block < le32_to_cpu(es->s_first_data_block) || 4490 if (block < le32_to_cpu(es->s_first_data_block) ||
4491 block + count < block || 4491 block + count < block ||
4492 block + count > ext4_blocks_count(es)) { 4492 block + count > ext4_blocks_count(es)) {
4493 ext4_error(sb, __FUNCTION__, 4493 ext4_error(sb, __func__,
4494 "Freeing blocks not in datazone - " 4494 "Freeing blocks not in datazone - "
4495 "block = %lu, count = %lu", block, count); 4495 "block = %lu, count = %lu", block, count);
4496 goto error_return; 4496 goto error_return;
@@ -4531,7 +4531,7 @@ do_more:
4531 in_range(block + count - 1, ext4_inode_table(sb, gdp), 4531 in_range(block + count - 1, ext4_inode_table(sb, gdp),
4532 EXT4_SB(sb)->s_itb_per_group)) { 4532 EXT4_SB(sb)->s_itb_per_group)) {
4533 4533
4534 ext4_error(sb, __FUNCTION__, 4534 ext4_error(sb, __func__,
4535 "Freeing blocks in system zone - " 4535 "Freeing blocks in system zone - "
4536 "Block = %lu, count = %lu", block, count); 4536 "Block = %lu, count = %lu", block, count);
4537 } 4537 }