[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <YW2lUDleoIpoD2sb@dhcp22.suse.cz>
Date: Mon, 18 Oct 2021 18:48:16 +0200
From: Michal Hocko <mhocko@...e.com>
To: linux-mm@...ck.org
Cc: Dave Chinner <david@...morbit.com>, Neil Brown <neilb@...e.de>,
Andrew Morton <akpm@...ux-foundation.org>,
Christoph Hellwig <hch@...radead.org>,
Uladzislau Rezki <urezki@...il.com>,
linux-fsdevel@...r.kernel.org, LKML <linux-kernel@...r.kernel.org>,
Ilya Dryomov <idryomov@...il.com>,
Jeff Layton <jlayton@...nel.org>
Subject: Re: [RFC 2/3] mm/vmalloc: add support for __GFP_NOFAIL
Fat fingers on my side. A follow up to fold
commit 63d1b80b9a298c9380e5175e2add7025b6bd2600
Author: Michal Hocko <mhocko@...e.com>
Date: Mon Oct 18 18:47:04 2021 +0200
fold me "mm/vmalloc: add support for __GFP_NOFAIL"
diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index 3a5a178295d1..4ce9ccc33e33 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -3034,7 +3034,7 @@ void *__vmalloc_node_range(unsigned long size, unsigned long align,
warn_alloc(gfp_mask, NULL,
"vmalloc error: size %lu, vm_struct allocation failed",
real_size);
- if (gfp_mask && __GFP_NOFAIL)
+ if (gfp_mask & __GFP_NOFAIL)
goto again;
goto fail;
}
--
Michal Hocko
SUSE Labs
Powered by blists - more mailing lists