Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936306AbWLDMfA (ORCPT ); Mon, 4 Dec 2006 07:35:00 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S936279AbWLDMej (ORCPT ); Mon, 4 Dec 2006 07:34:39 -0500 Received: from filer.fsl.cs.sunysb.edu ([130.245.126.2]:45534 "EHLO filer.fsl.cs.sunysb.edu") by vger.kernel.org with ESMTP id S936275AbWLDMee (ORCPT ); Mon, 4 Dec 2006 07:34:34 -0500 From: "Josef 'Jeff' Sipek" To: linux-kernel@vger.kernel.org Cc: torvalds@osdl.org, akpm@osdl.org, hch@infradead.org, viro@ftp.linux.org.uk, linux-fsdevel@vger.kernel.org, mhalcrow@us.ibm.com, Josef "Jeff" Sipek Subject: [PATCH 07/35] struct path: Move struct path from fs/namei.c into include/linux Date: Mon, 4 Dec 2006 07:30:40 -0500 Message-Id: <11652354691570-git-send-email-jsipek@cs.sunysb.edu> X-Mailer: git-send-email 1.4.3.3 In-Reply-To: <1165235468365-git-send-email-jsipek@cs.sunysb.edu> References: <1165235468365-git-send-email-jsipek@cs.sunysb.edu> Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1321 Lines: 52 From: Josef "Jeff" Sipek Moved struct path from fs/namei.c to include/linux/namei.h. This allows many places in the VFS, as well as any stackable filesystem to easily keep track of dentry-vfsmount pairs. Signed-off-by: Josef "Jeff" Sipek --- fs/namei.c | 5 ----- include/linux/namei.h | 5 +++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/fs/namei.c b/fs/namei.c index 28d49b3..8a7b923 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -570,11 +570,6 @@ fail: return PTR_ERR(link); } -struct path { - struct vfsmount *mnt; - struct dentry *dentry; -}; - static inline void dput_path(struct path *path, struct nameidata *nd) { dput(path->dentry); diff --git a/include/linux/namei.h b/include/linux/namei.h index f5f1960..d39a5a6 100644 --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -29,6 +29,11 @@ struct nameidata { } intent; }; +struct path { + struct vfsmount *mnt; + struct dentry *dentry; +}; + /* * Type of the last component on LOOKUP_PARENT */ -- 1.4.3.3 - 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/