Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753307AbZK3CLj (ORCPT ); Sun, 29 Nov 2009 21:11:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752284AbZK3CLi (ORCPT ); Sun, 29 Nov 2009 21:11:38 -0500 Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:49648 "EHLO filer.fsl.cs.sunysb.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752066AbZK3CLh (ORCPT ); Sun, 29 Nov 2009 21:11:37 -0500 Date: Sun, 29 Nov 2009 21:11:11 -0500 Message-Id: <200911300211.nAU2BBrT007283@agora.fsl.cs.sunysb.edu> From: Erez Zadok To: Valerie Aurora Cc: Jan Blunck , Alexander Viro , Christoph Hellwig , Andy Whitcroft , Scott James Remnant , Sandu Popa Marius , Jan Rekorajski , "J. R. Okajima" , Arnd Bergmann , Vladimir Dronnikov , Felix Fietkau , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/41] VFS: Make real_lookup() return a struct path In-reply-to: Your message of "Wed, 21 Oct 2009 12:19:03 PDT." <1256152779-10054-6-git-send-email-vaurora@redhat.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1377 Lines: 39 In message <1256152779-10054-6-git-send-email-vaurora@redhat.com>, Valerie Aurora writes: > From: Jan Blunck > > This patch changes real_lookup() into returning a struct path. > > Signed-off-by: Jan Blunck > Signed-off-by: Valerie Aurora > --- > fs/namei.c | 82 +++++++++++++++++++++++++++++++++++++---------------------- > 1 files changed, 51 insertions(+), 31 deletions(-) > > diff --git a/fs/namei.c b/fs/namei.c > index 9c9ecfa..a338496 100644 > --- a/fs/namei.c > +++ b/fs/namei.c > @@ -462,10 +462,11 @@ ok: > * make sure that nobody added the entry to the dcache in the meantime.. > * SMP-safe > */ > -static struct dentry * real_lookup(struct dentry * parent, struct qstr * name, struct nameidata *nd) > +static int real_lookup(struct nameidata *nd, struct qstr *name, > + struct path *path) > { Same comments I had on patch 3: - document in comment and patch header the new @path parameter, who is responsible for it, new return err, etc. - consider adding BUG_ON(!path) - perhaps VFS this should also be pushed upstream before UM Erez. -- 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/