[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <17ebaa342f0525a5f34e.1161219430@thor.fsl.cs.sunysb.edu>
Date: Wed, 18 Oct 2006 20:57:10 -0400
From: Josef "Jeff" Sipek <jsipek@...sunysb.edu>
To: linux-kernel@...r.kernel.org
Cc: linux-fsdevel@...r.kernel.org, akpm@...l.org, hch@...radead.org,
viro@....linux.org.uk, mhalcrow@...ibm.com, chris.mason@...cle.com,
ezk@...sunysb.edu, penberg@...helsinki.fi, dm-devel@...hat.com,
mingo@...hat.com, reiserfs-dev@...esys.com
Subject: [PATCH 3 of 4] struct path: Move struct path from fs/namei.c into
include/linux
From: Josef "Jeff" Sipek <jsipek@...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@...sunysb.edu>
---
2 files changed, 5 insertions(+), 5 deletions(-)
fs/namei.c | 5 -----
include/linux/namei.h | 5 +++++
diff --git a/fs/namei.c b/fs/namei.c
--- a/fs/namei.c
+++ b/fs/namei.c
@@ -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 --git a/include/linux/namei.h b/include/linux/namei.h
--- a/include/linux/namei.h
+++ b/include/linux/namei.h
@@ -27,6 +27,11 @@ struct nameidata {
union {
struct open_intent open;
} intent;
+};
+
+struct path {
+ struct vfsmount *mnt;
+ struct dentry *dentry;
};
/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists