Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753251Ab1EIHkE (ORCPT ); Mon, 9 May 2011 03:40:04 -0400 Received: from fgwmail5.fujitsu.co.jp ([192.51.44.35]:44788 "EHLO fgwmail5.fujitsu.co.jp" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753057Ab1EIHkD (ORCPT ); Mon, 9 May 2011 03:40:03 -0400 X-SecurityPolicyCheck-FJ: OK by FujitsuOutboundMailChecker v1.3.1 From: KOSAKI Motohiro To: Stephen Wilson Subject: Re: [PATCH 1/8] mm: export get_vma_policy() Cc: kosaki.motohiro@jp.fujitsu.com, Andrew Morton , Alexander Viro , Hugh Dickins , David Rientjes , linux-mm@kvack.org, linux-kernel@vger.kernel.org In-Reply-To: <1303947349-3620-2-git-send-email-wilsons@start.ca> References: <1303947349-3620-1-git-send-email-wilsons@start.ca> <1303947349-3620-2-git-send-email-wilsons@start.ca> Message-Id: <20110509164143.1650.A69D9226@jp.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Mailer: Becky! ver. 2.56.05 [ja] Date: Mon, 9 May 2011 16:39:59 +0900 (JST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1508 Lines: 37 > diff --git a/include/linux/mempolicy.h b/include/linux/mempolicy.h > index 31ac26c..c2f6032 100644 > --- a/include/linux/mempolicy.h > +++ b/include/linux/mempolicy.h > @@ -199,6 +199,9 @@ void mpol_free_shared_policy(struct shared_policy *p); > struct mempolicy *mpol_shared_policy_lookup(struct shared_policy *sp, > unsigned long idx); > > +struct mempolicy *get_vma_policy(struct task_struct *tsk, > + struct vm_area_struct *vma, unsigned long addr); > + > extern void numa_default_policy(void); > extern void numa_policy_init(void); > extern void mpol_rebind_task(struct task_struct *tsk, const nodemask_t *new, > diff --git a/mm/mempolicy.c b/mm/mempolicy.c > index 959a8b8..5bfb03e 100644 > --- a/mm/mempolicy.c > +++ b/mm/mempolicy.c > @@ -1489,7 +1489,7 @@ asmlinkage long compat_sys_mbind(compat_ulong_t start, compat_ulong_t len, > * freeing by another task. It is the caller's responsibility to free the > * extra reference for shared policies. > */ > -static struct mempolicy *get_vma_policy(struct task_struct *task, > +struct mempolicy *get_vma_policy(struct task_struct *task, > struct vm_area_struct *vma, unsigned long addr) Looks reasonable to me. Reviewed-by: KOSAKI Motohiro -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/