lkml.org 
[lkml]   [2006]   [Oct]   [21]   [last100]   RSS Feed
Views: [more markup]  [less markup]  [headers]  [forward] 
 
Messages in this thread
/
DateSat, 21 Oct 2006 00:22:00 -0700
FromAndrew Morton <>
SubjectRe: [PATCH 01 of 23] VFS: change struct file to use struct path
On Sat, 21 Oct 2006 02:17:26 -0400
Josef "Jeff" Sipek <jsipek@cs.sunysb.edu> wrote:

> From: Josef "Jeff" Sipek <jsipek@cs.sunysb.edu>
> 
> 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;
-
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/

\
 
 \ /
  Last update: 2006-10-21 09:25    [from the cache]
©2003-2008