Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S937397AbXHHRTU (ORCPT ); Wed, 8 Aug 2007 13:19:20 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934718AbXHHRTD (ORCPT ); Wed, 8 Aug 2007 13:19:03 -0400 Received: from mx2.suse.de ([195.135.220.15]:37154 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1763778AbXHHRTA (ORCPT ); Wed, 8 Aug 2007 13:19:00 -0400 Message-Id: <20070808171643.542685765@suse.de> References: <20070808171622.632749741@suse.de> User-Agent: quilt/0.46-1 Date: Wed, 08 Aug 2007 19:16:23 +0200 From: Andreas Gruenbacher To: linux-kernel@vger.kernel.org Cc: John Johansen , Jan Blunck , Erez Zadok , "Josef 'Jeff' Sipek" Subject: [RFC 01/10] Split up struct nameidata Content-Disposition: inline; filename=nameidata-split.diff Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1267 Lines: 54 Split up struct nameidata into struct vfs_lookup with the lookup result and intent and the remaining fields for performing an actual lookup. Signed-off-by: Andreas Gruenbacher --- include/linux/namei.h | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) --- a/include/linux/namei.h +++ b/include/linux/namei.h @@ -14,14 +14,14 @@ struct open_intent { enum { MAX_NESTED_LINKS = 8 }; -struct nameidata { - struct dentry *dentry; +struct path { struct vfsmount *mnt; - struct qstr last; + struct dentry *dentry; +}; + +struct vfs_lookup { + struct path path; unsigned int flags; - int last_type; - unsigned depth; - char *saved_names[MAX_NESTED_LINKS + 1]; /* Intent data */ union { @@ -29,9 +29,12 @@ struct nameidata { } intent; }; -struct path { - struct vfsmount *mnt; - struct dentry *dentry; +struct nameidata { + struct vfs_lookup lookup; + struct qstr last; + int last_type; + unsigned depth; + char *saved_names[MAX_NESTED_LINKS + 1]; }; /* - 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/