Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 218827
b: refs/heads/master
c: f81e3d4
h: refs/heads/master
i:
  218825: 9b550f9
  218823: 0e17fa7
v: v3
  • Loading branch information
Namhyung Kim authored and Jan Kara committed Oct 27, 2010
1 parent 7b11242 commit 600ed71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c5639bef63a241d8d5a00e5243d7f304d7563c46
refs/heads/master: f81e3d4564a06c5a070337ba527d11865acecb67
10 changes: 4 additions & 6 deletions trunk/fs/jbd/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
#include <linux/poison.h>
#include <linux/proc_fs.h>
#include <linux/debugfs.h>
#include <linux/ratelimit.h>

#include <asm/uaccess.h>
#include <asm/page.h>
Expand Down Expand Up @@ -1719,19 +1720,16 @@ static void journal_destroy_journal_head_cache(void)
static struct journal_head *journal_alloc_journal_head(void)
{
struct journal_head *ret;
static unsigned long last_warning;

#ifdef CONFIG_JBD_DEBUG
atomic_inc(&nr_journal_heads);
#endif
ret = kmem_cache_alloc(journal_head_cache, GFP_NOFS);
if (ret == NULL) {
jbd_debug(1, "out of memory for journal_head\n");
if (time_after(jiffies, last_warning + 5*HZ)) {
printk(KERN_NOTICE "ENOMEM in %s, retrying.\n",
__func__);
last_warning = jiffies;
}
printk_ratelimited(KERN_NOTICE "ENOMEM in %s, retrying.\n",
__func__);

while (ret == NULL) {
yield();
ret = kmem_cache_alloc(journal_head_cache, GFP_NOFS);
Expand Down

0 comments on commit 600ed71

Please sign in to comment.