From: Andrew Morton Date: Wed, 23 Dec 2009 13:05:15 +0000 (-0500) Subject: jbd2: don't use __GFP_NOFAIL in journal_init_common() X-Git-Tag: 2.1b_release~9773^2~6 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3ebfdf885acedafcadceb4007e77438479094135;p=platform%2Fkernel%2Fkernel-mfld-blackbay.git jbd2: don't use __GFP_NOFAIL in journal_init_common() 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 Signed-off-by: Andrew Morton Signed-off-by: "Theodore Ts'o" --- diff --git a/fs/jbd2/journal.c b/fs/jbd2/journal.c index 17af879..ac0d027 100644 --- a/fs/jbd2/journal.c +++ b/fs/jbd2/journal.c @@ -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;