Re: [PATCH] xfs: reduce stack usage in xfs_bmap_btalloc()

From: Andi Kleen
Date: Sat Apr 26 2008 - 16:20:39 EST


On Sat, Apr 26, 2008 at 04:07:01PM -0400, Christoph Hellwig wrote:
> On Sat, Apr 26, 2008 at 10:02:17PM +0200, Andi Kleen wrote:
> > Denys Vlasenko <vda.linux@xxxxxxxxxxxxxx> writes:
> > >
> > > Compile tested only.
> >
> > You should mark the helper noinline just to prevent gcc from possibly
> > inlining it. Even if it doesn't with your current compiler inline heuristics
> > vary widely between compiler versions.
>
> STATIC as defined by xfs already does this..

Weird. Unexpected. Different from everyone else. Is this some exercise in
obfuscation?

But ok.

-Andi
--
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/