Re: [PATCH] exportfs: reduce stack usage

From: Neil Brown
Date: Thu Sep 30 2004 - 20:15:10 EST


On Tuesday September 28, rddunlap@xxxxxxxx wrote:
>
> find_exported_dentry() declares
> char nbuf[NAME_MAX+1];
> in 2 separate places, and gcc allocates space on the stack for both
> of them. Having just one of them will suffice, if we can put put
> with its scope.
>
> Reduces function stack usage on x86-32 from 0x230 to 0x130.

So it does. I thought gcc was cleverer than that.
I'll add it to my collection.

Thanks,
NeilBrown
-
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/