From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from zps78.corp.google.com (zps78.corp.google.com [172.25.146.78]) by smtp-out.google.com with ESMTP id l4AJUxCd003930 for ; Thu, 10 May 2007 12:30:59 -0700 Received: from an-out-0708.google.com (ancc23.prod.google.com [10.100.29.23]) by zps78.corp.google.com with ESMTP id l4AJUnua017162 for ; Thu, 10 May 2007 12:30:49 -0700 Received: by an-out-0708.google.com with SMTP id c23so261325anc for ; Thu, 10 May 2007 12:30:49 -0700 (PDT) Message-ID: Date: Thu, 10 May 2007 12:30:48 -0700 From: "Ken Chen" Subject: Re: [patch] check cpuset mems_allowed for sys_mbind In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <20070509164859.15dd347b.pj@sgi.com> Sender: owner-linux-mm@kvack.org Return-Path: To: Christoph Lameter Cc: Paul Jackson , akpm@linux-foundation.org, linux-mm@kvack.org List-ID: On 5/10/07, Christoph Lameter wrote: > 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? No, the patch was fine. I copy'n paste from xterm which turns all tab into space. It's crappy xterm stuff. -- 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