Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 346f20ff authored by Josef "Jeff" Sipek's avatar Josef "Jeff" Sipek Committed by Linus Torvalds
Browse files

[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: default avatarJosef "Jeff" Sipek <jsipek@cs.sunysb.edu>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent c922d5f7
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -572,11 +572,6 @@ fail:
	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);
+5 −0
Original line number Diff line number Diff line
@@ -29,6 +29,11 @@ struct nameidata {
	} intent;
};

struct path {
	struct vfsmount *mnt;
	struct dentry *dentry;
};

/*
 * Type of the last component on LOOKUP_PARENT
 */