From: Chen Feng Date: Sat, 30 Jul 2016 02:09:11 +0000 (+0800) Subject: staging: ion: remove __GFP_NOWARN when use low order gfp flags X-Git-Tag: v4.9-rc1~119^2~987 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=d2805d7fff5ba1db3accd5ef010f9fdbb1925f08;p=karo-tx-linux.git staging: ion: remove __GFP_NOWARN when use low order gfp flags It's useful to show the current memory in detail when alloc failed. And, there may be a lot of high order alloc failed, just show memory when an order 0 alloc failed. Signed-off-by: Chen Feng Acked-by: Laura Abbott Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion_system_heap.c b/drivers/staging/android/ion/ion_system_heap.c index 269e7766fc43..f1cef2bebbc9 100644 --- a/drivers/staging/android/ion/ion_system_heap.c +++ b/drivers/staging/android/ion/ion_system_heap.c @@ -30,7 +30,7 @@ static gfp_t high_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO | __GFP_NOWARN | __GFP_NORETRY) & ~__GFP_RECLAIM; -static gfp_t low_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO | __GFP_NOWARN); +static gfp_t low_order_gfp_flags = (GFP_HIGHUSER | __GFP_ZERO); static const unsigned int orders[] = {8, 4, 0}; static int order_to_index(unsigned int order)