diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 05:16:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:46 -0400 |
commit | fbe5498b3d5af44a8671800e85b2858c2ea236fa (patch) | |
tree | 2dcd7a66cdcbe6742bde41cf05933c2d4ad1879d | |
parent | 8acc570fabc022d41baedc0c9bf976a4b9d16d6f (diff) |
reiserfs: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Chris Mason <chris.mason@oracle.com>
Cc: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | fs/reiserfs/bitmap.c | 8 | ||||
-rw-r--r-- | fs/reiserfs/journal.c | 8 | ||||
-rw-r--r-- | fs/reiserfs/namei.c | 8 | ||||
-rw-r--r-- | fs/reiserfs/objectid.c | 2 |
4 files changed, 13 insertions, 13 deletions
diff --git a/fs/reiserfs/bitmap.c b/fs/reiserfs/bitmap.c index f491ceb5af02..4646caa60455 100644 --- a/fs/reiserfs/bitmap.c +++ b/fs/reiserfs/bitmap.c | |||
@@ -479,7 +479,7 @@ static void __discard_prealloc(struct reiserfs_transaction_handle *th, | |||
479 | if (ei->i_prealloc_count < 0) | 479 | if (ei->i_prealloc_count < 0) |
480 | reiserfs_warning(th->t_super, | 480 | reiserfs_warning(th->t_super, |
481 | "zam-4001:%s: inode has negative prealloc blocks count.", | 481 | "zam-4001:%s: inode has negative prealloc blocks count.", |
482 | __FUNCTION__); | 482 | __func__); |
483 | #endif | 483 | #endif |
484 | while (ei->i_prealloc_count > 0) { | 484 | while (ei->i_prealloc_count > 0) { |
485 | reiserfs_free_prealloc_block(th, inode, ei->i_prealloc_block); | 485 | reiserfs_free_prealloc_block(th, inode, ei->i_prealloc_block); |
@@ -517,7 +517,7 @@ void reiserfs_discard_all_prealloc(struct reiserfs_transaction_handle *th) | |||
517 | if (!ei->i_prealloc_count) { | 517 | if (!ei->i_prealloc_count) { |
518 | reiserfs_warning(th->t_super, | 518 | reiserfs_warning(th->t_super, |
519 | "zam-4001:%s: inode is in prealloc list but has no preallocated blocks.", | 519 | "zam-4001:%s: inode is in prealloc list but has no preallocated blocks.", |
520 | __FUNCTION__); | 520 | __func__); |
521 | } | 521 | } |
522 | #endif | 522 | #endif |
523 | __discard_prealloc(th, ei); | 523 | __discard_prealloc(th, ei); |
@@ -632,7 +632,7 @@ int reiserfs_parse_alloc_options(struct super_block *s, char *options) | |||
632 | } | 632 | } |
633 | 633 | ||
634 | reiserfs_warning(s, "zam-4001: %s : unknown option - %s", | 634 | reiserfs_warning(s, "zam-4001: %s : unknown option - %s", |
635 | __FUNCTION__, this_char); | 635 | __func__, this_char); |
636 | return 1; | 636 | return 1; |
637 | } | 637 | } |
638 | 638 | ||
@@ -1254,7 +1254,7 @@ struct buffer_head *reiserfs_read_bitmap_block(struct super_block *sb, | |||
1254 | bh = sb_bread(sb, block); | 1254 | bh = sb_bread(sb, block); |
1255 | if (bh == NULL) | 1255 | if (bh == NULL) |
1256 | reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%u) " | 1256 | reiserfs_warning(sb, "sh-2029: %s: bitmap block (#%u) " |
1257 | "reading failed", __FUNCTION__, block); | 1257 | "reading failed", __func__, block); |
1258 | else { | 1258 | else { |
1259 | if (buffer_locked(bh)) { | 1259 | if (buffer_locked(bh)) { |
1260 | PROC_INFO_INC(sb, scan_bitmap.wait); | 1260 | PROC_INFO_INC(sb, scan_bitmap.wait); |
diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 2e87b6aaec72..da86042b3e03 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
@@ -1187,7 +1187,7 @@ static int flush_commit_list(struct super_block *s, | |||
1187 | 1187 | ||
1188 | if (retval) | 1188 | if (retval) |
1189 | reiserfs_abort(s, retval, "Journal write error in %s", | 1189 | reiserfs_abort(s, retval, "Journal write error in %s", |
1190 | __FUNCTION__); | 1190 | __func__); |
1191 | put_fs_excl(); | 1191 | put_fs_excl(); |
1192 | return retval; | 1192 | return retval; |
1193 | } | 1193 | } |
@@ -1534,7 +1534,7 @@ static int flush_journal_list(struct super_block *s, | |||
1534 | reiserfs_warning(s, | 1534 | reiserfs_warning(s, |
1535 | "clm-2082: Unable to flush buffer %llu in %s", | 1535 | "clm-2082: Unable to flush buffer %llu in %s", |
1536 | (unsigned long long)saved_bh-> | 1536 | (unsigned long long)saved_bh-> |
1537 | b_blocknr, __FUNCTION__); | 1537 | b_blocknr, __func__); |
1538 | } | 1538 | } |
1539 | free_cnode: | 1539 | free_cnode: |
1540 | last = cn; | 1540 | last = cn; |
@@ -1586,7 +1586,7 @@ static int flush_journal_list(struct super_block *s, | |||
1586 | if (err) | 1586 | if (err) |
1587 | reiserfs_abort(s, -EIO, | 1587 | reiserfs_abort(s, -EIO, |
1588 | "Write error while pushing transaction to disk in %s", | 1588 | "Write error while pushing transaction to disk in %s", |
1589 | __FUNCTION__); | 1589 | __func__); |
1590 | flush_older_and_return: | 1590 | flush_older_and_return: |
1591 | 1591 | ||
1592 | /* before we can update the journal header block, we _must_ flush all | 1592 | /* before we can update the journal header block, we _must_ flush all |
@@ -1616,7 +1616,7 @@ static int flush_journal_list(struct super_block *s, | |||
1616 | if (err) | 1616 | if (err) |
1617 | reiserfs_abort(s, -EIO, | 1617 | reiserfs_abort(s, -EIO, |
1618 | "Write error while updating journal header in %s", | 1618 | "Write error while updating journal header in %s", |
1619 | __FUNCTION__); | 1619 | __func__); |
1620 | } | 1620 | } |
1621 | remove_all_from_journal_list(s, jl, 0); | 1621 | remove_all_from_journal_list(s, jl, 0); |
1622 | list_del_init(&jl->j_list); | 1622 | list_del_init(&jl->j_list); |
diff --git a/fs/reiserfs/namei.c b/fs/reiserfs/namei.c index 8867533cb727..c1add28dd45e 100644 --- a/fs/reiserfs/namei.c +++ b/fs/reiserfs/namei.c | |||
@@ -301,7 +301,7 @@ static int reiserfs_find_entry(struct inode *dir, const char *name, int namelen, | |||
301 | path_to_entry, de); | 301 | path_to_entry, de); |
302 | if (retval == IO_ERROR) { | 302 | if (retval == IO_ERROR) { |
303 | reiserfs_warning(dir->i_sb, "zam-7001: io error in %s", | 303 | reiserfs_warning(dir->i_sb, "zam-7001: io error in %s", |
304 | __FUNCTION__); | 304 | __func__); |
305 | return IO_ERROR; | 305 | return IO_ERROR; |
306 | } | 306 | } |
307 | 307 | ||
@@ -496,7 +496,7 @@ static int reiserfs_add_entry(struct reiserfs_transaction_handle *th, | |||
496 | reiserfs_warning(dir->i_sb, | 496 | reiserfs_warning(dir->i_sb, |
497 | "zam-7002:%s: \"reiserfs_find_entry\" " | 497 | "zam-7002:%s: \"reiserfs_find_entry\" " |
498 | "has returned unexpected value (%d)", | 498 | "has returned unexpected value (%d)", |
499 | __FUNCTION__, retval); | 499 | __func__, retval); |
500 | } | 500 | } |
501 | 501 | ||
502 | return -EEXIST; | 502 | return -EEXIST; |
@@ -907,7 +907,7 @@ static int reiserfs_rmdir(struct inode *dir, struct dentry *dentry) | |||
907 | 907 | ||
908 | if (inode->i_nlink != 2 && inode->i_nlink != 1) | 908 | if (inode->i_nlink != 2 && inode->i_nlink != 1) |
909 | reiserfs_warning(inode->i_sb, "%s: empty directory has nlink " | 909 | reiserfs_warning(inode->i_sb, "%s: empty directory has nlink " |
910 | "!= 2 (%d)", __FUNCTION__, inode->i_nlink); | 910 | "!= 2 (%d)", __func__, inode->i_nlink); |
911 | 911 | ||
912 | clear_nlink(inode); | 912 | clear_nlink(inode); |
913 | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME_SEC; | 913 | inode->i_ctime = dir->i_ctime = dir->i_mtime = CURRENT_TIME_SEC; |
@@ -984,7 +984,7 @@ static int reiserfs_unlink(struct inode *dir, struct dentry *dentry) | |||
984 | 984 | ||
985 | if (!inode->i_nlink) { | 985 | if (!inode->i_nlink) { |
986 | reiserfs_warning(inode->i_sb, "%s: deleting nonexistent file " | 986 | reiserfs_warning(inode->i_sb, "%s: deleting nonexistent file " |
987 | "(%s:%lu), %d", __FUNCTION__, | 987 | "(%s:%lu), %d", __func__, |
988 | reiserfs_bdevname(inode->i_sb), inode->i_ino, | 988 | reiserfs_bdevname(inode->i_sb), inode->i_ino, |
989 | inode->i_nlink); | 989 | inode->i_nlink); |
990 | inode->i_nlink = 1; | 990 | inode->i_nlink = 1; |
diff --git a/fs/reiserfs/objectid.c b/fs/reiserfs/objectid.c index f0c154372f50..ea0cf8c28a99 100644 --- a/fs/reiserfs/objectid.c +++ b/fs/reiserfs/objectid.c | |||
@@ -61,7 +61,7 @@ __u32 reiserfs_get_unused_objectid(struct reiserfs_transaction_handle *th) | |||
61 | /* comment needed -Hans */ | 61 | /* comment needed -Hans */ |
62 | unused_objectid = le32_to_cpu(map[1]); | 62 | unused_objectid = le32_to_cpu(map[1]); |
63 | if (unused_objectid == U32_MAX) { | 63 | if (unused_objectid == U32_MAX) { |
64 | reiserfs_warning(s, "%s: no more object ids", __FUNCTION__); | 64 | reiserfs_warning(s, "%s: no more object ids", __func__); |
65 | reiserfs_restore_prepared_buffer(s, SB_BUFFER_WITH_SB(s)); | 65 | reiserfs_restore_prepared_buffer(s, SB_BUFFER_WITH_SB(s)); |
66 | return 0; | 66 | return 0; |
67 | } | 67 | } |