Re: [patch 1/6] mempolicy: convert MPOL constants to enum

From: Christoph Lameter
Date: Wed Feb 27 2008 - 14:35:53 EST


On Mon, 25 Feb 2008, David Rientjes wrote:

> struct mempolicy {
> atomic_t refcnt;
> - short policy; /* See MPOL_* above */
> + unsigned short policy; /* See MPOL_* above */

The point here is to have a 16 bit value? There are no space savins due to
the alignment requirement of the union. Isnt it possible to use the enum
here? If not then what is the point of the enum?

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/