Re: dentry bloat.

From: David S. Miller
Date: Sat May 08 2004 - 13:24:08 EST


On Sat, 8 May 2004 10:28:29 -0700 (PDT)
Linus Torvalds <torvalds@xxxxxxxx> wrote:

> > + unsigned short len;
> > +} __attribute__((packed));
...
> I think you just made
> "name" be unaligned, which can cause serious problems. Because I think
> "packed" _also_ means that it doesn't honor the alignment of the thing
> when laying it out in structures.

That's correct, alignment concerns are thrown out the door once
you specify packed to the compiler.
-
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/