From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail144.messagelabs.com (mail144.messagelabs.com [216.82.254.51]) by kanga.kvack.org (Postfix) with ESMTP id 2F8226B024D for ; Wed, 21 Jul 2010 15:26:35 -0400 (EDT) Received: from hpaq12.eem.corp.google.com (hpaq12.eem.corp.google.com [172.25.149.12]) by smtp-out.google.com with ESMTP id o6LJQWPA028520 for ; Wed, 21 Jul 2010 12:26:32 -0700 Received: from pzk33 (pzk33.prod.google.com [10.243.19.161]) by hpaq12.eem.corp.google.com with ESMTP id o6LJQUbw011122 for ; Wed, 21 Jul 2010 12:26:30 -0700 Received: by pzk33 with SMTP id 33so2782480pzk.14 for ; Wed, 21 Jul 2010 12:26:29 -0700 (PDT) Date: Wed, 21 Jul 2010 12:26:26 -0700 (PDT) From: David Rientjes Subject: [patch 5/6] jbd: remove dependency on __GFP_NOFAIL In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org To: Andrew Morton , Jan Kara Cc: Andreas Dilger , Jiri Kosina , linux-mm@kvack.org List-ID: The kzalloc() in start_this_handle() is failable, so remove __GFP_NOFAIL from its mask. Cc: Andreas Dilger Cc: Jiri Kosina Signed-off-by: David Rientjes --- fs/jbd/transaction.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/fs/jbd/transaction.c b/fs/jbd/transaction.c --- a/fs/jbd/transaction.c +++ b/fs/jbd/transaction.c @@ -99,8 +99,7 @@ static int start_this_handle(journal_t *journal, handle_t *handle) alloc_transaction: if (!journal->j_running_transaction) { - new_transaction = kzalloc(sizeof(*new_transaction), - GFP_NOFS|__GFP_NOFAIL); + new_transaction = kzalloc(sizeof(*new_transaction), GFP_NOFS); if (!new_transaction) { ret = -ENOMEM; goto out; -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org