From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S269655AbUJABMl (ORCPT ); Thu, 30 Sep 2004 21:12:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S269656AbUJABMl (ORCPT ); Thu, 30 Sep 2004 21:12:41 -0400 Received: from note.orchestra.cse.unsw.EDU.AU ([129.94.242.24]:12427 "EHLO note.orchestra.cse.unsw.EDU.AU") by vger.kernel.org with ESMTP id S269655AbUJABMk (ORCPT ); Thu, 30 Sep 2004 21:12:40 -0400 From: Neil Brown To: "Randy.Dunlap" Date: Fri, 1 Oct 2004 11:12:28 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <16732.44796.86341.578389@cse.unsw.edu.au> Cc: lkml Subject: Re: [PATCH] exportfs: reduce stack usage In-Reply-To: message from Randy.Dunlap on Tuesday September 28 References: <20040928215718.55ed72a5.rddunlap@osdl.org> X-Mailer: VM 7.18 under Emacs 21.3.1 X-face: [Gw_3E*Gng}4rRrKRYotwlE?.2|**#s9D > 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