diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 05:16:03 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:43 -0400 |
commit | 605afd60ef6dde254fc9b8667c5bccebade251c3 (patch) | |
tree | 1e0f3997eadcd59e6139845fb99b381b8c119d52 /fs | |
parent | 2c11619a590e13fecc801c9c50859cba29740f38 (diff) |
ext2: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs')
-rw-r--r-- | fs/ext2/balloc.c | 10 | ||||
-rw-r--r-- | fs/ext2/dir.c | 14 | ||||
-rw-r--r-- | fs/ext2/super.c | 6 | ||||
-rw-r--r-- | fs/ext2/xip.c | 2 |
4 files changed, 16 insertions, 16 deletions
diff --git a/fs/ext2/balloc.c b/fs/ext2/balloc.c index c834f512dce..25dec8633c9 100644 --- a/fs/ext2/balloc.c +++ b/fs/ext2/balloc.c | |||
@@ -106,7 +106,7 @@ static int ext2_valid_block_bitmap(struct super_block *sb, | |||
106 | return 1; | 106 | return 1; |
107 | 107 | ||
108 | err_out: | 108 | err_out: |
109 | ext2_error(sb, __FUNCTION__, | 109 | ext2_error(sb, __func__, |
110 | "Invalid block bitmap - " | 110 | "Invalid block bitmap - " |
111 | "block_group = %d, block = %lu", | 111 | "block_group = %d, block = %lu", |
112 | block_group, bitmap_blk); | 112 | block_group, bitmap_blk); |
@@ -132,7 +132,7 @@ read_block_bitmap(struct super_block *sb, unsigned int block_group) | |||
132 | bitmap_blk = le32_to_cpu(desc->bg_block_bitmap); | 132 | bitmap_blk = le32_to_cpu(desc->bg_block_bitmap); |
133 | bh = sb_getblk(sb, bitmap_blk); | 133 | bh = sb_getblk(sb, bitmap_blk); |
134 | if (unlikely(!bh)) { | 134 | if (unlikely(!bh)) { |
135 | ext2_error(sb, __FUNCTION__, | 135 | ext2_error(sb, __func__, |
136 | "Cannot read block bitmap - " | 136 | "Cannot read block bitmap - " |
137 | "block_group = %d, block_bitmap = %u", | 137 | "block_group = %d, block_bitmap = %u", |
138 | block_group, le32_to_cpu(desc->bg_block_bitmap)); | 138 | block_group, le32_to_cpu(desc->bg_block_bitmap)); |
@@ -143,7 +143,7 @@ read_block_bitmap(struct super_block *sb, unsigned int block_group) | |||
143 | 143 | ||
144 | if (bh_submit_read(bh) < 0) { | 144 | if (bh_submit_read(bh) < 0) { |
145 | brelse(bh); | 145 | brelse(bh); |
146 | ext2_error(sb, __FUNCTION__, | 146 | ext2_error(sb, __func__, |
147 | "Cannot read block bitmap - " | 147 | "Cannot read block bitmap - " |
148 | "block_group = %d, block_bitmap = %u", | 148 | "block_group = %d, block_bitmap = %u", |
149 | block_group, le32_to_cpu(desc->bg_block_bitmap)); | 149 | block_group, le32_to_cpu(desc->bg_block_bitmap)); |
@@ -248,7 +248,7 @@ restart: | |||
248 | BUG_ON(bad); | 248 | BUG_ON(bad); |
249 | } | 249 | } |
250 | #define rsv_window_dump(root, verbose) \ | 250 | #define rsv_window_dump(root, verbose) \ |
251 | __rsv_window_dump((root), (verbose), __FUNCTION__) | 251 | __rsv_window_dump((root), (verbose), __func__) |
252 | #else | 252 | #else |
253 | #define rsv_window_dump(root, verbose) do {} while (0) | 253 | #define rsv_window_dump(root, verbose) do {} while (0) |
254 | #endif | 254 | #endif |
@@ -547,7 +547,7 @@ do_more: | |||
547 | for (i = 0, group_freed = 0; i < count; i++) { | 547 | for (i = 0, group_freed = 0; i < count; i++) { |
548 | if (!ext2_clear_bit_atomic(sb_bgl_lock(sbi, block_group), | 548 | if (!ext2_clear_bit_atomic(sb_bgl_lock(sbi, block_group), |
549 | bit + i, bitmap_bh->b_data)) { | 549 | bit + i, bitmap_bh->b_data)) { |
550 | ext2_error(sb, __FUNCTION__, | 550 | ext2_error(sb, __func__, |
551 | "bit already cleared for block %lu", block + i); | 551 | "bit already cleared for block %lu", block + i); |
552 | } else { | 552 | } else { |
553 | group_freed++; | 553 | group_freed++; |
diff --git a/fs/ext2/dir.c b/fs/ext2/dir.c index dd9dbb25eab..a78c6b4af06 100644 --- a/fs/ext2/dir.c +++ b/fs/ext2/dir.c | |||
@@ -295,7 +295,7 @@ ext2_readdir (struct file * filp, void * dirent, filldir_t filldir) | |||
295 | struct page *page = ext2_get_page(inode, n); | 295 | struct page *page = ext2_get_page(inode, n); |
296 | 296 | ||
297 | if (IS_ERR(page)) { | 297 | if (IS_ERR(page)) { |
298 | ext2_error(sb, __FUNCTION__, | 298 | ext2_error(sb, __func__, |
299 | "bad page in #%lu", | 299 | "bad page in #%lu", |
300 | inode->i_ino); | 300 | inode->i_ino); |
301 | filp->f_pos += PAGE_CACHE_SIZE - offset; | 301 | filp->f_pos += PAGE_CACHE_SIZE - offset; |
@@ -314,7 +314,7 @@ ext2_readdir (struct file * filp, void * dirent, filldir_t filldir) | |||
314 | limit = kaddr + ext2_last_byte(inode, n) - EXT2_DIR_REC_LEN(1); | 314 | limit = kaddr + ext2_last_byte(inode, n) - EXT2_DIR_REC_LEN(1); |
315 | for ( ;(char*)de <= limit; de = ext2_next_entry(de)) { | 315 | for ( ;(char*)de <= limit; de = ext2_next_entry(de)) { |
316 | if (de->rec_len == 0) { | 316 | if (de->rec_len == 0) { |
317 | ext2_error(sb, __FUNCTION__, | 317 | ext2_error(sb, __func__, |
318 | "zero-length directory entry"); | 318 | "zero-length directory entry"); |
319 | ext2_put_page(page); | 319 | ext2_put_page(page); |
320 | return -EIO; | 320 | return -EIO; |
@@ -381,7 +381,7 @@ struct ext2_dir_entry_2 * ext2_find_entry (struct inode * dir, | |||
381 | kaddr += ext2_last_byte(dir, n) - reclen; | 381 | kaddr += ext2_last_byte(dir, n) - reclen; |
382 | while ((char *) de <= kaddr) { | 382 | while ((char *) de <= kaddr) { |
383 | if (de->rec_len == 0) { | 383 | if (de->rec_len == 0) { |
384 | ext2_error(dir->i_sb, __FUNCTION__, | 384 | ext2_error(dir->i_sb, __func__, |
385 | "zero-length directory entry"); | 385 | "zero-length directory entry"); |
386 | ext2_put_page(page); | 386 | ext2_put_page(page); |
387 | goto out; | 387 | goto out; |
@@ -396,7 +396,7 @@ struct ext2_dir_entry_2 * ext2_find_entry (struct inode * dir, | |||
396 | n = 0; | 396 | n = 0; |
397 | /* next page is past the blocks we've got */ | 397 | /* next page is past the blocks we've got */ |
398 | if (unlikely(n > (dir->i_blocks >> (PAGE_CACHE_SHIFT - 9)))) { | 398 | if (unlikely(n > (dir->i_blocks >> (PAGE_CACHE_SHIFT - 9)))) { |
399 | ext2_error(dir->i_sb, __FUNCTION__, | 399 | ext2_error(dir->i_sb, __func__, |
400 | "dir %lu size %lld exceeds block count %llu", | 400 | "dir %lu size %lld exceeds block count %llu", |
401 | dir->i_ino, dir->i_size, | 401 | dir->i_ino, dir->i_size, |
402 | (unsigned long long)dir->i_blocks); | 402 | (unsigned long long)dir->i_blocks); |
@@ -506,7 +506,7 @@ int ext2_add_link (struct dentry *dentry, struct inode *inode) | |||
506 | goto got_it; | 506 | goto got_it; |
507 | } | 507 | } |
508 | if (de->rec_len == 0) { | 508 | if (de->rec_len == 0) { |
509 | ext2_error(dir->i_sb, __FUNCTION__, | 509 | ext2_error(dir->i_sb, __func__, |
510 | "zero-length directory entry"); | 510 | "zero-length directory entry"); |
511 | err = -EIO; | 511 | err = -EIO; |
512 | goto out_unlock; | 512 | goto out_unlock; |
@@ -578,7 +578,7 @@ int ext2_delete_entry (struct ext2_dir_entry_2 * dir, struct page * page ) | |||
578 | 578 | ||
579 | while ((char*)de < (char*)dir) { | 579 | while ((char*)de < (char*)dir) { |
580 | if (de->rec_len == 0) { | 580 | if (de->rec_len == 0) { |
581 | ext2_error(inode->i_sb, __FUNCTION__, | 581 | ext2_error(inode->i_sb, __func__, |
582 | "zero-length directory entry"); | 582 | "zero-length directory entry"); |
583 | err = -EIO; | 583 | err = -EIO; |
584 | goto out; | 584 | goto out; |
@@ -670,7 +670,7 @@ int ext2_empty_dir (struct inode * inode) | |||
670 | 670 | ||
671 | while ((char *)de <= kaddr) { | 671 | while ((char *)de <= kaddr) { |
672 | if (de->rec_len == 0) { | 672 | if (de->rec_len == 0) { |
673 | ext2_error(inode->i_sb, __FUNCTION__, | 673 | ext2_error(inode->i_sb, __func__, |
674 | "zero-length directory entry"); | 674 | "zero-length directory entry"); |
675 | printk("kaddr=%p, de=%p\n", kaddr, de); | 675 | printk("kaddr=%p, de=%p\n", kaddr, de); |
676 | goto not_empty; | 676 | goto not_empty; |
diff --git a/fs/ext2/super.c b/fs/ext2/super.c index 3f745fb5fff..ef50cbc792d 100644 --- a/fs/ext2/super.c +++ b/fs/ext2/super.c | |||
@@ -89,7 +89,7 @@ void ext2_update_dynamic_rev(struct super_block *sb) | |||
89 | if (le32_to_cpu(es->s_rev_level) > EXT2_GOOD_OLD_REV) | 89 | if (le32_to_cpu(es->s_rev_level) > EXT2_GOOD_OLD_REV) |
90 | return; | 90 | return; |
91 | 91 | ||
92 | ext2_warning(sb, __FUNCTION__, | 92 | ext2_warning(sb, __func__, |
93 | "updating to rev %d because of new feature flag, " | 93 | "updating to rev %d because of new feature flag, " |
94 | "running e2fsck is recommended", | 94 | "running e2fsck is recommended", |
95 | EXT2_DYNAMIC_REV); | 95 | EXT2_DYNAMIC_REV); |
@@ -1060,7 +1060,7 @@ static int ext2_fill_super(struct super_block *sb, void *data, int silent) | |||
1060 | goto failed_mount3; | 1060 | goto failed_mount3; |
1061 | } | 1061 | } |
1062 | if (EXT2_HAS_COMPAT_FEATURE(sb, EXT3_FEATURE_COMPAT_HAS_JOURNAL)) | 1062 | if (EXT2_HAS_COMPAT_FEATURE(sb, EXT3_FEATURE_COMPAT_HAS_JOURNAL)) |
1063 | ext2_warning(sb, __FUNCTION__, | 1063 | ext2_warning(sb, __func__, |
1064 | "mounting ext3 filesystem as ext2"); | 1064 | "mounting ext3 filesystem as ext2"); |
1065 | ext2_setup_super (sb, es, sb->s_flags & MS_RDONLY); | 1065 | ext2_setup_super (sb, es, sb->s_flags & MS_RDONLY); |
1066 | return 0; | 1066 | return 0; |
@@ -1177,7 +1177,7 @@ static int ext2_remount (struct super_block * sb, int * flags, char * data) | |||
1177 | if (((sbi->s_mount_opt & EXT2_MOUNT_XIP) != | 1177 | if (((sbi->s_mount_opt & EXT2_MOUNT_XIP) != |
1178 | (old_mount_opt & EXT2_MOUNT_XIP)) && | 1178 | (old_mount_opt & EXT2_MOUNT_XIP)) && |
1179 | invalidate_inodes(sb)) | 1179 | invalidate_inodes(sb)) |
1180 | ext2_warning(sb, __FUNCTION__, "busy inodes while remounting "\ | 1180 | ext2_warning(sb, __func__, "busy inodes while remounting "\ |
1181 | "xip remain in cache (no functional problem)"); | 1181 | "xip remain in cache (no functional problem)"); |
1182 | if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) | 1182 | if ((*flags & MS_RDONLY) == (sb->s_flags & MS_RDONLY)) |
1183 | return 0; | 1183 | return 0; |
diff --git a/fs/ext2/xip.c b/fs/ext2/xip.c index 233f7fdbe31..4fb94c20041 100644 --- a/fs/ext2/xip.c +++ b/fs/ext2/xip.c | |||
@@ -68,7 +68,7 @@ void ext2_xip_verify_sb(struct super_block *sb) | |||
68 | if ((sbi->s_mount_opt & EXT2_MOUNT_XIP) && | 68 | if ((sbi->s_mount_opt & EXT2_MOUNT_XIP) && |
69 | !sb->s_bdev->bd_disk->fops->direct_access) { | 69 | !sb->s_bdev->bd_disk->fops->direct_access) { |
70 | sbi->s_mount_opt &= (~EXT2_MOUNT_XIP); | 70 | sbi->s_mount_opt &= (~EXT2_MOUNT_XIP); |
71 | ext2_warning(sb, __FUNCTION__, | 71 | ext2_warning(sb, __func__, |
72 | "ignoring xip option - not supported by bdev"); | 72 | "ignoring xip option - not supported by bdev"); |
73 | } | 73 | } |
74 | } | 74 | } |