lkml.org 
[lkml]   [2008]   [Apr]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    From
    SubjectRe: [patch 10/15] fs/logfs/memtree.c
    Date
    On Tuesday 01 April 2008, joern@logfs.org wrote:
    > +#if BITS_PER_LONG == 32
    > +#define BTREE_NODES 20 /* 32bit, 240 byte nodes */
    > +#else
    > +#define BTREE_NODES 16 /* 64bit, 256 byte nodes */
    > +#endif
    > +
    > +struct btree_node {
    > +       u64 key;
    > +       struct btree_node *node;
    > +};

    On 32 bit platforms other than x86, your struct btree_node
    is 16 bytes long because of alignment requirements, rather
    than the 12 bytes you are assuming.

    Arnd <><
    --
    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/

    \
     
     \ /
      Last update: 2008-04-10 16:11    [W:4.474 / U:0.408 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site