diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-04-18 14:06:57 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-11 21:36:01 -0400 |
commit | 1c755af4df75996b0dd4b7e6cacaf9d57a6ef2ef (patch) | |
tree | 0a75e35164912f53b21ca48b829cabdfa6ea507d /fs/namespace.c | |
parent | 79ed0226198c628133530b179a90dbf42b1c2eba (diff) | |
download | op-kernel-dev-1c755af4df75996b0dd4b7e6cacaf9d57a6ef2ef.zip op-kernel-dev-1c755af4df75996b0dd4b7e6cacaf9d57a6ef2ef.tar.gz |
switch lookup_mnt()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namespace.c')
-rw-r--r-- | fs/namespace.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/namespace.c b/fs/namespace.c index ba5237b..b94ad3d 100644 --- a/fs/namespace.c +++ b/fs/namespace.c @@ -442,11 +442,11 @@ struct vfsmount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry, * lookup_mnt increments the ref count before returning * the vfsmount struct. */ -struct vfsmount *lookup_mnt(struct vfsmount *mnt, struct dentry *dentry) +struct vfsmount *lookup_mnt(struct path *path) { struct vfsmount *child_mnt; spin_lock(&vfsmount_lock); - if ((child_mnt = __lookup_mnt(mnt, dentry, 1))) + if ((child_mnt = __lookup_mnt(path->mnt, path->dentry, 1))) mntget(child_mnt); spin_unlock(&vfsmount_lock); return child_mnt; |