From: akpm@linux-foundation.org Subject: [merged] mm-mempolicy-return-null-if-node-is-numa_no_node-in-get_task_policy.patch removed from -mm tree Date: Thu, 12 Sep 2013 12:43:21 -0700 Message-ID: <52321959.bfxYWpfKvf2uclOg%akpm@linux-foundation.org> Reply-To: linux-kernel@vger.kernel.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from mail.linuxfoundation.org ([140.211.169.12]:58191 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755656Ab3ILTnW (ORCPT ); Thu, 12 Sep 2013 15:43:22 -0400 Sender: mm-commits-owner@vger.kernel.org List-Id: mm-commits@vger.kernel.org To: mm-commits@vger.kernel.org, riel@redhat.com, mgorman@suse.de, kosaki.motohiro@jp.fujitsu.com, hughd@google.com, guohanjun@huawei.com, wujianguo@huawei.com Subject: [merged] mm-mempolicy-return-null-if-node-is-numa_no_node-in-get_task_policy.patch removed from -mm tree To: wujianguo@huawei.com,guohanjun@huawei.com,hughd@google.com,kosaki.motohiro@jp.fujitsu.com,mgorman@suse.de,riel@redhat.com,mm-commits@vger.kernel.org From: akpm@linux-foundation.org Date: Thu, 12 Sep 2013 12:43:21 -0700 The patch titled Subject: mm/mempolicy: return NULL if node is NUMA_NO_NODE in get_task_policy has been removed from the -mm tree. Its filename was mm-mempolicy-return-null-if-node-is-numa_no_node-in-get_task_policy.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ From: Jianguo Wu Subject: mm/mempolicy: return NULL if node is NUMA_NO_NODE in get_task_policy If node == NUMA_NO_NODE, pol is NULL, we should return NULL instead of do "if (!pol->mode)" check. [akpm@linux-foundation.org: reorganise code] Signed-off-by: Jianguo Wu Cc: Mel Gorman Cc: KOSAKI Motohiro Cc: Rik van Riel Cc: Hugh Dickins Cc: Hanjun Guo Signed-off-by: Andrew Morton --- mm/mempolicy.c | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff -puN mm/mempolicy.c~mm-mempolicy-return-null-if-node-is-numa_no_node-in-get_task_policy mm/mempolicy.c --- a/mm/mempolicy.c~mm-mempolicy-return-null-if-node-is-numa_no_node-in-get_task_policy +++ a/mm/mempolicy.c @@ -123,16 +123,19 @@ static struct mempolicy preferred_node_p static struct mempolicy *get_task_policy(struct task_struct *p) { struct mempolicy *pol = p->mempolicy; - int node; if (!pol) { - node = numa_node_id(); - if (node != NUMA_NO_NODE) - pol = &preferred_node_policy[node]; + int node = numa_node_id(); - /* preferred_node_policy is not initialised early in boot */ - if (!pol->mode) - pol = NULL; + if (node != NUMA_NO_NODE) { + pol = &preferred_node_policy[node]; + /* + * preferred_node_policy is not initialised early in + * boot + */ + if (!pol->mode) + pol = NULL; + } } return pol; _ Patches currently in -mm which might be from wujianguo@huawei.com are origin.patch