提交 346f20ff 编写于 作者: J Josef "Jeff" Sipek 提交者: Linus Torvalds

[PATCH] struct path: move struct path from fs/namei.c into include/linux

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: NJosef "Jeff" Sipek <jsipek@cs.sunysb.edu>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 c922d5f7
......@@ -572,11 +572,6 @@ static __always_inline int __vfs_follow_link(struct nameidata *nd, const char *l
return PTR_ERR(link);
}
struct path {
struct vfsmount *mnt;
struct dentry *dentry;
};
static inline void dput_path(struct path *path, struct nameidata *nd)
{
dput(path->dentry);
......
......@@ -29,6 +29,11 @@ struct nameidata {
} intent;
};
struct path {
struct vfsmount *mnt;
struct dentry *dentry;
};
/*
* Type of the last component on LOOKUP_PARENT
*/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册