Skip to content

Commit

Permalink
jbd2: don't use __GFP_NOFAIL in journal_init_common()
Browse files Browse the repository at this point in the history
It triggers the warning in get_page_from_freelist(), and it isn't
appropriate to use __GFP_NOFAIL here anyway.

Addresses http://bugzilla.kernel.org/show_bug.cgi?id=14843

Reported-by: Christian Casteyde <casteyde.christian@free.fr>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
  • Loading branch information
Andrew Morton authored and Theodore Ts'o committed Dec 23, 2009
1 parent c8afb44 commit 3ebfdf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/jbd2/journal.c
Original file line number Diff line number Diff line change
Expand Up @@ -814,7 +814,7 @@ static journal_t * journal_init_common (void)
journal_t *journal;
int err;

journal = kzalloc(sizeof(*journal), GFP_KERNEL|__GFP_NOFAIL);
journal = kzalloc(sizeof(*journal), GFP_KERNEL);
if (!journal)
goto fail;

Expand Down

0 comments on commit 3ebfdf8

Please sign in to comment.