diff options
Diffstat (limited to 'fs/jbd')
-rw-r--r-- | fs/jbd/journal.c | 18 | ||||
-rw-r--r-- | fs/jbd/revoke.c | 2 | ||||
-rw-r--r-- | fs/jbd/transaction.c | 4 |
3 files changed, 12 insertions, 12 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; |
diff --git a/fs/jbd/revoke.c b/fs/jbd/revoke.c index d5f8eee7c88c..1bb43e987f4b 100644 --- a/fs/jbd/revoke.c +++ b/fs/jbd/revoke.c | |||
@@ -138,7 +138,7 @@ repeat: | |||
138 | oom: | 138 | oom: |
139 | if (!journal_oom_retry) | 139 | if (!journal_oom_retry) |
140 | return -ENOMEM; | 140 | return -ENOMEM; |
141 | jbd_debug(1, "ENOMEM in %s, retrying\n", __FUNCTION__); | 141 | jbd_debug(1, "ENOMEM in %s, retrying\n", __func__); |
142 | yield(); | 142 | yield(); |
143 | goto repeat; | 143 | goto repeat; |
144 | } | 144 | } |
diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c index d8dd3d915fd9..67ff2024c23c 100644 --- a/fs/jbd/transaction.c +++ b/fs/jbd/transaction.c | |||
@@ -687,7 +687,7 @@ repeat: | |||
687 | if (!frozen_buffer) { | 687 | if (!frozen_buffer) { |
688 | printk(KERN_EMERG | 688 | printk(KERN_EMERG |
689 | "%s: OOM for frozen_buffer\n", | 689 | "%s: OOM for frozen_buffer\n", |
690 | __FUNCTION__); | 690 | __func__); |
691 | JBUFFER_TRACE(jh, "oom!"); | 691 | JBUFFER_TRACE(jh, "oom!"); |
692 | error = -ENOMEM; | 692 | error = -ENOMEM; |
693 | jbd_lock_bh_state(bh); | 693 | jbd_lock_bh_state(bh); |
@@ -904,7 +904,7 @@ repeat: | |||
904 | committed_data = jbd_alloc(jh2bh(jh)->b_size, GFP_NOFS); | 904 | committed_data = jbd_alloc(jh2bh(jh)->b_size, GFP_NOFS); |
905 | if (!committed_data) { | 905 | if (!committed_data) { |
906 | printk(KERN_EMERG "%s: No memory for committed data\n", | 906 | printk(KERN_EMERG "%s: No memory for committed data\n", |
907 | __FUNCTION__); | 907 | __func__); |
908 | err = -ENOMEM; | 908 | err = -ENOMEM; |
909 | goto out; | 909 | goto out; |
910 | } | 910 | } |