From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S261523AbVGaCFp (ORCPT ); Sat, 30 Jul 2005 22:05:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S261537AbVGaCFp (ORCPT ); Sat, 30 Jul 2005 22:05:45 -0400 Received: from graphe.net ([209.204.138.32]:10924 "EHLO graphe.net") by vger.kernel.org with ESMTP id S261523AbVGaCFn (ORCPT ); Sat, 30 Jul 2005 22:05:43 -0400 Date: Sat, 30 Jul 2005 19:05:41 -0700 (PDT) From: Christoph Lameter X-X-Sender: christoph@graphe.net To: Paul Jackson cc: linux-kernel@vger.kernel.org, akpm@osdl.org Subject: Re: [PATCH] String conversions for memory policy In-Reply-To: <20050730190126.6bec9186.pj@sgi.com> Message-ID: References: <20050729152049.4b172d78.pj@sgi.com> <20050729230026.1aa27e14.pj@sgi.com> <20050730181418.65caed1f.pj@sgi.com> <20050730190126.6bec9186.pj@sgi.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Score: -5.8 Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org On Sat, 30 Jul 2005, Paul Jackson wrote: > Christoph wrote: > > The problem is how to convert them back for display. Match the zones in > > groups of three to the zones in a node and then print out the node? > > What does get_mempolicy(2) do? I doubt it assumes groups of three. > See further the case for MPOL_BIND, in mm/mempolicy.c:get_zonemask(). It sets all the node bits by looping over all zones using zone->zone_pgdat->node_id.