Commit:     47bfdc0d5a18a4b760ffb6a332932aaa5c0859e0
Parent:     81819f0fc8285a2a5a921c019e3e3d7b6169d225
Author:     Christoph Lameter <[EMAIL PROTECTED]>
AuthorDate: Sun May 6 14:49:37 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Mon May 7 12:12:53 2007 -0700

    SLUB: change default alignments
    Structures may contain u64 items on 32 bit platforms that are only able to
    address 64 bit items on 64 bit boundaries.  Change the mininum alignment of
    slabs to conform to those expectations.
    ARCH_KMALLOC_MINALIGN must be changed for good since a variety of structure
    are mixed in the general slabs.
    ARCH_SLAB_MINALIGN is changed because currently there is no consistent
    specification of object alignment.  We may have that in the future when the
    KMEM_CACHE and related macros are used to generate slabs.  These pass the
    alignment of the structure generated by the compiler to the slab.
    With KMEM_CACHE etc we could align structures that do not contain 64
    bit values to 32 bit boundaries potentially saving some memory.
    Signed-off-by: Christoph Lameter <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[EMAIL PROTECTED]>
 mm/slub.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/mm/slub.c b/mm/slub.c
index 0cd56bd..4a8585b 100644
--- a/mm/slub.c
+++ b/mm/slub.c
@@ -145,11 +145,11 @@
-#define ARCH_KMALLOC_MINALIGN sizeof(void *)
+#define ARCH_KMALLOC_MINALIGN __alignof__(unsigned long long)
-#define ARCH_SLAB_MINALIGN sizeof(void *)
+#define ARCH_SLAB_MINALIGN __alignof__(unsigned long long)
 /* Internal SLUB flags */
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to