[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1465983258-3726-1-git-send-email-opensource.ganesh@gmail.com>
Date: Wed, 15 Jun 2016 17:34:18 +0800
From: Ganesh Mahendran <opensource.ganesh@...il.com>
To: linux-mm@...ck.org, linux-kernel@...r.kernel.org
Cc: akpm@...ux-foundation.org, vbabka@...e.cz, iamjoonsoo.kim@....com,
mhocko@...e.com, mina86@...a86.com, minchan@...nel.org,
khandual@...ux.vnet.ibm.com,
Ganesh Mahendran <opensource.ganesh@...il.com>
Subject: [PATCH v2] mm/page_alloc: remove unnecessary order check in __alloc_pages_direct_compact
In the callee try_to_compact_pages(), the (order == 0) is checked,
so remove check in __alloc_pages_direct_compact.
Signed-off-by: Ganesh Mahendran <opensource.ganesh@...il.com>
---
v2:
remove the check in __alloc_pages_direct_compact - Anshuman Khandual
---
mm/page_alloc.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/mm/page_alloc.c b/mm/page_alloc.c
index b9ea618..2f5a82a 100644
--- a/mm/page_alloc.c
+++ b/mm/page_alloc.c
@@ -3173,9 +3173,6 @@ __alloc_pages_direct_compact(gfp_t gfp_mask, unsigned int order,
struct page *page;
int contended_compaction;
- if (!order)
- return NULL;
-
current->flags |= PF_MEMALLOC;
*compact_result = try_to_compact_pages(gfp_mask, order, alloc_flags, ac,
mode, &contended_compaction);
--
1.9.1
Powered by blists - more mailing lists