From: Al Viro Subject: Re: [PATCH] factor out common code around ->follow_link invocation Date: Fri, 14 Jan 2005 00:21:21 +0000 Message-ID: <20050114002121.GK26051@parcelfarce.linux.theplanet.co.uk> References: <20050113165353.GB24377@lst.de> <20050113160634.0fd416b7.akpm@osdl.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Christoph Hellwig , linux-fsdevel@vger.kernel.org Return-path: Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:61160 "EHLO parcelfarce.linux.theplanet.co.uk") by vger.kernel.org with ESMTP id S261844AbVANAV0 (ORCPT ); Thu, 13 Jan 2005 19:21:26 -0500 To: Andrew Morton Content-Disposition: inline In-Reply-To: <20050113160634.0fd416b7.akpm@osdl.org> Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Jan 13, 2005 at 04:06:34PM -0800, Andrew Morton wrote: > Christoph Hellwig wrote: > > > > +static inline int __do_follow_link(struct dentry *dentry, struct nameidata *nd) > > Now there's a fairly insane amount of inlining going on around > do_follow_link() and __do_follow_link(). It makes my fingers itchy. > > ow. __do_follow_link inlines __vfs_follow_link inlines walk_init_root and > __do_follow_link has maybe three callsites. No. These guys are in the middle of mutual recursion. So in this particular case we *do* need inlining.