Re: [RFC] SLUB - define OO_ macro instead of hardcoded numbers

From: Christoph Lameter
Date: Wed Oct 22 2008 - 14:11:32 EST

On Wed, 22 Oct 2008, Cyrill Gorcunov wrote:

+#define OO_SHIFT 16
+#define OO_MASK ((1 << OO_SHIFT) - 1)
+#define MAX_OBJS_PER_PAGE 65535 /* see struct page.objects */

This is == OO_MASK right? Otherwise things will break when we change OO_SHIFT.
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at
Please read the FAQ at