lkml.org 
[lkml]   [2004]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: dentry bloat.


On Sat, 8 May 2004, Linus Torvalds wrote:
>
> NOTE! It's absolutely true that DNAME_INLINE_LEN may still be different
> from DNAME_INLINE_LEN_MIN. In particular, if something inside the struct
> makes the alignment of "struct dentry" be bigger than the offset of the
> last field, then DNAME_INLINE_LEN will be different from (bigger than)
> DNAME_INLINE_LEN.

Btw, this does depend on the fact that a regular "kmem_cache_create()"
with a alignment of 0 had better return a pointer that is always "aligned
enough" for the architecture in question.

But that had better be true anyway, since otherwise everything would
basically have to specify the alignment by hand, and the alignment of 0
would be useless.

Linus
-
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: 2009-11-18 23:46    [W:0.059 / U:0.012 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site