From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 10 May 2007 11:41:32 -0700 (PDT) From: Christoph Lameter Subject: Re: [patch] check cpuset mems_allowed for sys_mbind In-Reply-To: Message-ID: References: <20070509164859.15dd347b.pj@sgi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org Return-Path: To: Ken Chen Cc: Paul Jackson , akpm@linux-foundation.org, linux-mm@kvack.org List-ID: On Thu, 10 May 2007, Ken Chen wrote: > > diff --git a/mm/mempolicy.c b/mm/mempolicy.c > index da94639..c2aec0e 100644 > --- a/mm/mempolicy.c > +++ b/mm/mempolicy.c > @@ -884,6 +884,10 @@ asmlinkage long sys_mbind(unsigned long > err = get_nodes(&nodes, nmask, maxnode); > if (err) > return err; > +#ifdef CONFIG_CPUSETS > + /* Restrict the nodes to the allowed nodes in the cpuset */ > + nodes_and(nodes, nodes, current->mems_allowed); > +#endif > return do_mbind(start, len, mode, &nodes, flags); Did I screw up whitespace there? -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org