diff options
| author | Pekka Enberg <penberg@cs.helsinki.fi> | 2006-02-01 06:06:43 -0500 | 
|---|---|---|
| committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-02-01 11:53:25 -0500 | 
| commit | 8c777cc4be1390862d053cbc002246e87572147b (patch) | |
| tree | d8149bdfd5a6ce17e273aff5d7a2adaddd098d8d | |
| parent | d739b42b82773206297db1fc0d96ef895a5d9688 (diff) | |
[PATCH] reiserfs: use __GFP_NOFAIL instead of yield and retry loop for allocation
This patch replaces yield and retry loop with __GFP_NOFAIL in
alloc_journal_list().
Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
| -rw-r--r-- | fs/reiserfs/journal.c | 8 | 
1 files changed, 2 insertions, 6 deletions
| diff --git a/fs/reiserfs/journal.c b/fs/reiserfs/journal.c index 16b526fd20b9..2d04efb22eea 100644 --- a/fs/reiserfs/journal.c +++ b/fs/reiserfs/journal.c | |||
| @@ -2446,12 +2446,8 @@ static int journal_read(struct super_block *p_s_sb) | |||
| 2446 | static struct reiserfs_journal_list *alloc_journal_list(struct super_block *s) | 2446 | static struct reiserfs_journal_list *alloc_journal_list(struct super_block *s) | 
| 2447 | { | 2447 | { | 
| 2448 | struct reiserfs_journal_list *jl; | 2448 | struct reiserfs_journal_list *jl; | 
| 2449 | retry: | 2449 | jl = kzalloc(sizeof(struct reiserfs_journal_list), | 
| 2450 | jl = kzalloc(sizeof(struct reiserfs_journal_list), GFP_NOFS); | 2450 | GFP_NOFS | __GFP_NOFAIL); | 
| 2451 | if (!jl) { | ||
| 2452 | yield(); | ||
| 2453 | goto retry; | ||
| 2454 | } | ||
| 2455 | INIT_LIST_HEAD(&jl->j_list); | 2451 | INIT_LIST_HEAD(&jl->j_list); | 
| 2456 | INIT_LIST_HEAD(&jl->j_working_list); | 2452 | INIT_LIST_HEAD(&jl->j_working_list); | 
| 2457 | INIT_LIST_HEAD(&jl->j_tail_bh_list); | 2453 | INIT_LIST_HEAD(&jl->j_tail_bh_list); | 
