Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757848AbYBKUpz (ORCPT ); Mon, 11 Feb 2008 15:45:55 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752022AbYBKUpr (ORCPT ); Mon, 11 Feb 2008 15:45:47 -0500 Received: from relay1.sgi.com ([192.48.171.29]:44788 "EHLO relay.sgi.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751961AbYBKUpq (ORCPT ); Mon, 11 Feb 2008 15:45:46 -0500 Date: Mon, 11 Feb 2008 12:45:45 -0800 (PST) From: Christoph Lameter X-X-Sender: clameter@schroedinger.engr.sgi.com To: David Rientjes cc: Andrew Morton , Paul Jackson , Lee Schermerhorn , Andi Kleen , linux-kernel@vger.kernel.org Subject: Re: [patch 1/4] mempolicy: convert MPOL constants to enum In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 933 Lines: 21 On Mon, 11 Feb 2008, David Rientjes wrote: > On Mon, 11 Feb 2008, Christoph Lameter wrote: > > > Then you could follow through with the enum mempolicy thing > > throughtout. Why not use enum mempolicy in struct mempolicy? > > > > Mempolicy flags, as I implemented them in patch 2 in this series, are not > integer constants that are enumerated starting at 0. They are individual > bits that are shifted a pre-defined length and intersected with the > enumerated mode. This allows both the mode and the flags to be stored in > the same object. Ok. Now are you are making the same point that I did before. Lets leave enum out if we need to do these tricks with the upper bits. -- 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/