diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-04-28 05:16:16 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-04-28 11:58:45 -0400 |
commit | 08fc99bfc39d5b394aa27498ac5f14df0ef8e52a (patch) | |
tree | 3749ce01f8cb60e3cf08c95f3f4076e21ad62ee7 /fs/jbd/journal.c | |
parent | e05b6b524bd5c5c2bae1b64a7cbe08d46d57a6fe (diff) |
jbd: 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: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/jbd/journal.c')
-rw-r--r-- | fs/jbd/journal.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/fs/jbd/journal.c b/fs/jbd/journal.c index 0e081d5f32e8..b99c3b3654c4 100644 --- a/fs/jbd/journal.c +++ b/fs/jbd/journal.c | |||
@@ -534,7 +534,7 @@ int log_wait_commit(journal_t *journal, tid_t tid) | |||
534 | if (!tid_geq(journal->j_commit_request, tid)) { | 534 | if (!tid_geq(journal->j_commit_request, tid)) { |
535 | printk(KERN_EMERG | 535 | printk(KERN_EMERG |
536 | "%s: error: j_commit_request=%d, tid=%d\n", | 536 | "%s: error: j_commit_request=%d, tid=%d\n", |
537 | __FUNCTION__, journal->j_commit_request, tid); | 537 | __func__, journal->j_commit_request, tid); |
538 | } | 538 | } |
539 | spin_unlock(&journal->j_state_lock); | 539 | spin_unlock(&journal->j_state_lock); |
540 | #endif | 540 | #endif |
@@ -599,7 +599,7 @@ int journal_bmap(journal_t *journal, unsigned long blocknr, | |||
599 | 599 | ||
600 | printk(KERN_ALERT "%s: journal block not found " | 600 | printk(KERN_ALERT "%s: journal block not found " |
601 | "at offset %lu on %s\n", | 601 | "at offset %lu on %s\n", |
602 | __FUNCTION__, | 602 | __func__, |
603 | blocknr, | 603 | blocknr, |
604 | bdevname(journal->j_dev, b)); | 604 | bdevname(journal->j_dev, b)); |
605 | err = -EIO; | 605 | err = -EIO; |
@@ -728,7 +728,7 @@ journal_t * journal_init_dev(struct block_device *bdev, | |||
728 | journal->j_wbuf = kmalloc(n * sizeof(struct buffer_head*), GFP_KERNEL); | 728 | journal->j_wbuf = kmalloc(n * sizeof(struct buffer_head*), GFP_KERNEL); |
729 | if (!journal->j_wbuf) { | 729 | if (!journal->j_wbuf) { |
730 | printk(KERN_ERR "%s: Cant allocate bhs for commit thread\n", | 730 | printk(KERN_ERR "%s: Cant allocate bhs for commit thread\n", |
731 | __FUNCTION__); | 731 | __func__); |
732 | kfree(journal); | 732 | kfree(journal); |
733 | journal = NULL; | 733 | journal = NULL; |
734 | goto out; | 734 | goto out; |
@@ -782,7 +782,7 @@ journal_t * journal_init_inode (struct inode *inode) | |||
782 | journal->j_wbuf = kmalloc(n * sizeof(struct buffer_head*), GFP_KERNEL); | 782 | journal->j_wbuf = kmalloc(n * sizeof(struct buffer_head*), GFP_KERNEL); |
783 | if (!journal->j_wbuf) { | 783 | if (!journal->j_wbuf) { |
784 | printk(KERN_ERR "%s: Cant allocate bhs for commit thread\n", | 784 | printk(KERN_ERR "%s: Cant allocate bhs for commit thread\n", |
785 | __FUNCTION__); | 785 | __func__); |
786 | kfree(journal); | 786 | kfree(journal); |
787 | return NULL; | 787 | return NULL; |
788 | } | 788 | } |
@@ -791,7 +791,7 @@ journal_t * journal_init_inode (struct inode *inode) | |||
791 | /* If that failed, give up */ | 791 | /* If that failed, give up */ |
792 | if (err) { | 792 | if (err) { |
793 | printk(KERN_ERR "%s: Cannnot locate journal superblock\n", | 793 | printk(KERN_ERR "%s: Cannnot locate journal superblock\n", |
794 | __FUNCTION__); | 794 | __func__); |
795 | kfree(journal); | 795 | kfree(journal); |
796 | return NULL; | 796 | return NULL; |
797 | } | 797 | } |
@@ -877,7 +877,7 @@ int journal_create(journal_t *journal) | |||
877 | */ | 877 | */ |
878 | printk(KERN_EMERG | 878 | printk(KERN_EMERG |
879 | "%s: creation of journal on external device!\n", | 879 | "%s: creation of journal on external device!\n", |
880 | __FUNCTION__); | 880 | __func__); |
881 | BUG(); | 881 | BUG(); |
882 | } | 882 | } |
883 | 883 | ||
@@ -1657,7 +1657,7 @@ static struct journal_head *journal_alloc_journal_head(void) | |||
1657 | jbd_debug(1, "out of memory for journal_head\n"); | 1657 | jbd_debug(1, "out of memory for journal_head\n"); |
1658 | if (time_after(jiffies, last_warning + 5*HZ)) { | 1658 | if (time_after(jiffies, last_warning + 5*HZ)) { |
1659 | printk(KERN_NOTICE "ENOMEM in %s, retrying.\n", | 1659 | printk(KERN_NOTICE "ENOMEM in %s, retrying.\n", |
1660 | __FUNCTION__); | 1660 | __func__); |
1661 | last_warning = jiffies; | 1661 | last_warning = jiffies; |
1662 | } | 1662 | } |
1663 | while (ret == NULL) { | 1663 | while (ret == NULL) { |
@@ -1794,13 +1794,13 @@ static void __journal_remove_journal_head(struct buffer_head *bh) | |||
1794 | if (jh->b_frozen_data) { | 1794 | if (jh->b_frozen_data) { |
1795 | printk(KERN_WARNING "%s: freeing " | 1795 | printk(KERN_WARNING "%s: freeing " |
1796 | "b_frozen_data\n", | 1796 | "b_frozen_data\n", |
1797 | __FUNCTION__); | 1797 | __func__); |
1798 | jbd_free(jh->b_frozen_data, bh->b_size); | 1798 | jbd_free(jh->b_frozen_data, bh->b_size); |
1799 | } | 1799 | } |
1800 | if (jh->b_committed_data) { | 1800 | if (jh->b_committed_data) { |
1801 | printk(KERN_WARNING "%s: freeing " | 1801 | printk(KERN_WARNING "%s: freeing " |
1802 | "b_committed_data\n", | 1802 | "b_committed_data\n", |
1803 | __FUNCTION__); | 1803 | __func__); |
1804 | jbd_free(jh->b_committed_data, bh->b_size); | 1804 | jbd_free(jh->b_committed_data, bh->b_size); |
1805 | } | 1805 | } |
1806 | bh->b_private = NULL; | 1806 | bh->b_private = NULL; |