head	1.1;
access;
symbols
	LKML-branch:1.1.0.2;
locks; strict;
comment	@# @;


1.1
date	2006.10.24.06.05.37;	author jsipek;	state dead;
branches
	1.1.2.1;
next	;

1.1.2.1
date	2006.10.24.06.05.37;	author jsipek;	state Exp;
branches;
next	1.1.2.2;

1.1.2.2
date	2006.11.07.06.13.33;	author jsipek;	state Exp;
branches;
next	1.1.2.3;

1.1.2.3
date	2007.01.05.08.33.49;	author jsipek;	state dead;
branches;
next	;


desc
@@


1.1
log
@file struct_path was initially added on branch LKML-branch.
@
text
@@


1.1.2.1
log
@Move patches already in mm into a subdir
@
text
@a0 40
struct path: Move struct path from fs/namei.c into include/linux

From: Josef "Jeff" Sipek <jsipek@@cs.sunysb.edu>

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 <jsipek@@cs.sunysb.edu>

diff -r 73c91439f7a2 fs/namei.c
--- a/fs/namei.c	Wed Oct 18 11:00:09 2006 -0400
+++ b/fs/namei.c	Wed Oct 18 11:06:19 2006 -0400
@@@@ -569,11 +569,6 @@@@ fail:
 	path_release(nd);
 	return PTR_ERR(link);
 }
-
-struct path {
-	struct vfsmount *mnt;
-	struct dentry *dentry;
-};
 
 static inline void dput_path(struct path *path, struct nameidata *nd)
 {
diff -r 73c91439f7a2 include/linux/namei.h
--- a/include/linux/namei.h	Wed Oct 18 11:00:09 2006 -0400
+++ b/include/linux/namei.h	Wed Oct 18 11:07:02 2006 -0400
@@@@ -27,6 +27,11 @@@@ struct nameidata {
 	union {
 		struct open_intent open;
 	} intent;
+};
+
+struct path {
+	struct vfsmount *mnt;
+	struct dentry *dentry;
 };
 
 /*
@


1.1.2.2
log
@Git generates slightly different diffs - same information, just little
different
@
text
@d11 5
a15 5
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:
d18 1
a18 1
 
d23 1
a23 1
-
d26 6
a31 6
 	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 {
d33 2
a34 2
 };
 
d38 2
a39 2
+};
+
a40 2
  * Type of the last component on LOOKUP_PARENT
  */
@


1.1.2.3
log
@Removed many patches already in vanilla
@
text
@@


