lib/stackdepot.c: use __GFP_NOWARN for stack allocations
[email protected]
maintainerPATCH 94/101 lib/stackdepot.c: use __GFP_NOWARN for stack allocations
From: "Kirill A. Shutemov" <[email protected]>
Subject: lib/stackdepot.c: use __GFP_NOWARN for stack allocations
This (large, atomic) allocation attempt can fail. We expect and handle that, so avoid the scary warning.
Cc Andrey Ryabinin <[email protected]>
Cc Alexander Potapenko <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Rik van Riel <[email protected]>
Cc David Rientjes <[email protected]>
Cc Mel Gorman <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
lib/stackdepot.c | 1 + 1 file changed, 1 insertion(+)
lib/stackdepot.c renamed from lib/stackdepot.c~lib-stackdepotc-use-__gfp_nowarn-for-stack-allocations +1 -0
@@ -242,6 +242,7 @@ depot_stack_handle_t depot_save_stack(st*/ alloc_flags &= ~GFP_ZONEMASK ; alloc_flags &= (GFP_ATOMIC |GFP_KERNEL ); + alloc_flags |= __GFP_NOWARN; page =alloc_pages (alloc_flags,STACK_ALLOC_ORDER );if (page) prealloc =page_address (page);
_