switch lookup_mnt()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
Al Viro
2009-04-18 14:06:57 -04:00
parent 79ed022619
commit 1c755af4df
3 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -702,7 +702,7 @@ static int __follow_mount(struct path *path)
{
int res = 0;
while (d_mountpoint(path->dentry)) {
struct vfsmount *mounted = lookup_mnt(path->mnt, path->dentry);
struct vfsmount *mounted = lookup_mnt(path);
if (!mounted)
break;
dput(path->dentry);
@@ -718,7 +718,7 @@ static int __follow_mount(struct path *path)
static void follow_mount(struct path *path)
{
while (d_mountpoint(path->dentry)) {
struct vfsmount *mounted = lookup_mnt(path->mnt, path->dentry);
struct vfsmount *mounted = lookup_mnt(path);
if (!mounted)
break;
dput(path->dentry);
@@ -735,7 +735,7 @@ int follow_down(struct path *path)
{
struct vfsmount *mounted;
mounted = lookup_mnt(path->mnt, path->dentry);
mounted = lookup_mnt(path);
if (mounted) {
dput(path->dentry);
mntput(path->mnt);