Re: [PATCH] shrinks dentry struct

From: Andrew Morton
Date: Tue Nov 29 2005 - 21:14:01 EST


Paul Jackson <pj@xxxxxxx> wrote:
>
> Would the following accomplish the same thing as your patch, to shrink
> UP dentry structs back to 128 bytes, with a smaller and less intrusive
> patch?
>
> ...
> - struct list_head d_child; /* child of parent list */
> + union { /* Fit 32 bit UP dentry in 128 bytes */
> + struct list_head du_child; /* child of parent list */
> + struct rcu_head du_rcu;
> + } d_du;
> ...
>
> +#define d_child d_du.du_child
> +#define d_rcu d_du.du_rcu

Yes, but it's better to just do the big edit, rather than letting these
little namespace crufties accumulate over time.

Even better would be to ditch gcc-2.95.x and use an anonymous union, but
Hugh won't let me ;)
-
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/