projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d739b42
)
[PATCH] reiserfs: use __GFP_NOFAIL instead of yield and retry loop for allocation
author
Pekka Enberg
<
[email protected]
>
Wed, 1 Feb 2006 11:06:43 +0000
(
03:06
-0800)
committer
Linus Torvalds
<
[email protected]
>
Wed, 1 Feb 2006 16:53:25 +0000
(08:53 -0800)
This patch replaces yield and retry loop with __GFP_NOFAIL in
alloc_journal_list().
Signed-off-by: Pekka Enberg <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
fs/reiserfs/journal.c
patch
|
blob
|
history
diff --git
a/fs/reiserfs/journal.c
b/fs/reiserfs/journal.c
index 16b526fd20b9cd155aac24a0947930c507402530..2d04efb22eea81e90606f1834e2ea1610f4850fe 100644
(file)
--- a/
fs/reiserfs/journal.c
+++ b/
fs/reiserfs/journal.c
@@
-2446,12
+2446,8
@@
static int journal_read(struct super_block *p_s_sb)
static struct reiserfs_journal_list *alloc_journal_list(struct super_block *s)
{
struct reiserfs_journal_list *jl;
- retry:
- jl = kzalloc(sizeof(struct reiserfs_journal_list), GFP_NOFS);
- if (!jl) {
- yield();
- goto retry;
- }
+ jl = kzalloc(sizeof(struct reiserfs_journal_list),
+ GFP_NOFS | __GFP_NOFAIL);
INIT_LIST_HEAD(&jl->j_list);
INIT_LIST_HEAD(&jl->j_working_list);
INIT_LIST_HEAD(&jl->j_tail_bh_list);