From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Morton Subject: Re: [PATCH 01 of 23] VFS: change struct file to use struct path Date: Sat, 21 Oct 2006 00:22:00 -0700 Message-ID: <20061021002200.4731cdeb.akpm@osdl.org> References: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, torvalds@osdl.org, viro@ftp.linux.org.uk, hch@infradead.org, jack@suse.cz Return-path: To: Josef "Jeff" Sipek In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Sat, 21 Oct 2006 02:17:26 -0400 Josef "Jeff" Sipek wrote: > From: Josef "Jeff" Sipek > > This patch changes struct file to use struct path instead of having > independent pointers to struct dentry and struct vfsmount, and converts all > users of f_{dentry,vfsmnt} in fs/ to use f_path.{dentry,mnt}. > why? > @@ -723,8 +724,9 @@ struct file { > struct list_head fu_list; > struct rcu_head fu_rcuhead; > } f_u; > - struct dentry *f_dentry; > - struct vfsmount *f_vfsmnt; > + struct path f_path; > +#define f_dentry f_path.dentry > +#define f_vfsmnt f_path.mnt > const struct file_operations *f_op; > atomic_t f_count; > unsigned int f_flags;