--- 2.5/include/linux/dcache.h Thu Oct 11 15:20:18 2001 +++ build-2.5/include/linux/dcache.h Thu Dec 13 22:55:50 2001 @@ -61,9 +61,7 @@ return end_name_hash(hash); } -#define DNAME_INLINE_LEN 16 - -struct dentry { +struct dentry_nameless { atomic_t d_count; unsigned int d_flags; struct inode * d_inode; /* Where the name belongs to - NULL is negative */ @@ -80,6 +78,12 @@ struct super_block * d_sb; /* The root of the dentry tree */ unsigned long d_vfs_flags; void * d_fsdata; /* fs-specific data */ +}; +#define DNAME_INLINE_LEN \ + (16 + L1_CACHE_BYTES - (16+sizeof(struct dentry_nameless))%L1_CACHE_BYTES) + +struct dentry { + struct dentry_nameless; unsigned char d_iname[DNAME_INLINE_LEN]; /* small names */ };