Re: [PATCH] shrinks dentry struct
From: Andrew Morton (akpm_at_osdl.org)
Date: 11/30/05
- Previous message: Paul Mackerras: "Re: Linux 2.6.15-rc3"
- In reply to: Paul Jackson: "Re: [PATCH] shrinks dentry struct"
- Next in thread: Paul Jackson: "Re: [PATCH] shrinks dentry struct"
- Reply: Paul Jackson: "Re: [PATCH] shrinks dentry struct"
- Reply: Hugh Dickins: "Re: [PATCH] shrinks dentry struct"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 29 Nov 2005 18:14:21 -0800 To: Paul Jackson <pj@sgi.com>
Paul Jackson <pj@sgi.com> 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@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
- Previous message: Paul Mackerras: "Re: Linux 2.6.15-rc3"
- In reply to: Paul Jackson: "Re: [PATCH] shrinks dentry struct"
- Next in thread: Paul Jackson: "Re: [PATCH] shrinks dentry struct"
- Reply: Paul Jackson: "Re: [PATCH] shrinks dentry struct"
- Reply: Hugh Dickins: "Re: [PATCH] shrinks dentry struct"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]