Stable cvs version for 2.4
David Woodhouse
dwmw2 at infradead.org
Wed Sep 4 11:44:48 EDT 2002
jasmine at hex.linuxgrrls.org said:
> > > Adding a byte will destroy the alignment. you'd have to add a whole
> > > word.
> > Er, what alignment?
> The alignment of the structure. Either it's a whole multiple of
> words or it isn't.
Sorry, I was making the unstated assumption that we would have a #define
and add the byte only in the case where it was required because the
allocator would _already_ be giving us unaligned structures.
So we never need to add a word instead of a byte to preserve the alignment,
because in the case where the alignment needs preserving, we didn't need to
add the byte in the first place.
(And now I'm making the assumption that "aligned structures" == "pointers
without the low bit set", but that's not unreasonable in the real world.)
But anyway, having seen that it's not as huge a saving as I thought, and
having seen that I can probably save the 4 bytes of 'size' with less pain,
I may not bother with it at all for a while.
--
dwmw2
More information about the linux-mtd
mailing list