Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Harvey Harrison and committed by
Linus Torvalds
08fc99bf e05b6b52

+12 -12
+9 -9
fs/jbd/journal.c
··· 534 534 if (!tid_geq(journal->j_commit_request, tid)) { 535 535 printk(KERN_EMERG 536 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 539 spin_unlock(&journal->j_state_lock); 540 540 #endif ··· 599 599 600 600 printk(KERN_ALERT "%s: journal block not found " 601 601 "at offset %lu on %s\n", 602 - __FUNCTION__, 602 + __func__, 603 603 blocknr, 604 604 bdevname(journal->j_dev, b)); 605 605 err = -EIO; ··· 728 728 journal->j_wbuf = kmalloc(n * sizeof(struct buffer_head*), GFP_KERNEL); 729 729 if (!journal->j_wbuf) { 730 730 printk(KERN_ERR "%s: Cant allocate bhs for commit thread\n", 731 - __FUNCTION__); 731 + __func__); 732 732 kfree(journal); 733 733 journal = NULL; 734 734 goto out; ··· 782 782 journal->j_wbuf = kmalloc(n * sizeof(struct buffer_head*), GFP_KERNEL); 783 783 if (!journal->j_wbuf) { 784 784 printk(KERN_ERR "%s: Cant allocate bhs for commit thread\n", 785 - __FUNCTION__); 785 + __func__); 786 786 kfree(journal); 787 787 return NULL; 788 788 } ··· 791 791 /* If that failed, give up */ 792 792 if (err) { 793 793 printk(KERN_ERR "%s: Cannnot locate journal superblock\n", 794 - __FUNCTION__); 794 + __func__); 795 795 kfree(journal); 796 796 return NULL; 797 797 } ··· 877 877 */ 878 878 printk(KERN_EMERG 879 879 "%s: creation of journal on external device!\n", 880 - __FUNCTION__); 880 + __func__); 881 881 BUG(); 882 882 } 883 883 ··· 1657 1657 jbd_debug(1, "out of memory for journal_head\n"); 1658 1658 if (time_after(jiffies, last_warning + 5*HZ)) { 1659 1659 printk(KERN_NOTICE "ENOMEM in %s, retrying.\n", 1660 - __FUNCTION__); 1660 + __func__); 1661 1661 last_warning = jiffies; 1662 1662 } 1663 1663 while (ret == NULL) { ··· 1794 1794 if (jh->b_frozen_data) { 1795 1795 printk(KERN_WARNING "%s: freeing " 1796 1796 "b_frozen_data\n", 1797 - __FUNCTION__); 1797 + __func__); 1798 1798 jbd_free(jh->b_frozen_data, bh->b_size); 1799 1799 } 1800 1800 if (jh->b_committed_data) { 1801 1801 printk(KERN_WARNING "%s: freeing " 1802 1802 "b_committed_data\n", 1803 - __FUNCTION__); 1803 + __func__); 1804 1804 jbd_free(jh->b_committed_data, bh->b_size); 1805 1805 } 1806 1806 bh->b_private = NULL;
+1 -1
fs/jbd/revoke.c
··· 138 138 oom: 139 139 if (!journal_oom_retry) 140 140 return -ENOMEM; 141 - jbd_debug(1, "ENOMEM in %s, retrying\n", __FUNCTION__); 141 + jbd_debug(1, "ENOMEM in %s, retrying\n", __func__); 142 142 yield(); 143 143 goto repeat; 144 144 }
+2 -2
fs/jbd/transaction.c
··· 687 687 if (!frozen_buffer) { 688 688 printk(KERN_EMERG 689 689 "%s: OOM for frozen_buffer\n", 690 - __FUNCTION__); 690 + __func__); 691 691 JBUFFER_TRACE(jh, "oom!"); 692 692 error = -ENOMEM; 693 693 jbd_lock_bh_state(bh); ··· 904 904 committed_data = jbd_alloc(jh2bh(jh)->b_size, GFP_NOFS); 905 905 if (!committed_data) { 906 906 printk(KERN_EMERG "%s: No memory for committed data\n", 907 - __FUNCTION__); 907 + __func__); 908 908 err = -ENOMEM; 909 909 goto out; 910 910 }