diff options
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 ba5237be1cf9..b94ad3d685ff 100644 --- a/fs/namespace.c +++ b/fs/namespace.c | |||
@@ -442,11 +442,11 @@ struct vfsmount *__lookup_mnt(struct vfsmount *mnt, struct dentry *dentry, | |||
442 | * lookup_mnt increments the ref count before returning | 442 | * lookup_mnt increments the ref count before returning |
443 | * the vfsmount struct. | 443 | * the vfsmount struct. |
444 | */ | 444 | */ |
445 | struct vfsmount *lookup_mnt(struct vfsmount *mnt, struct dentry *dentry) | 445 | struct vfsmount *lookup_mnt(struct path *path) |
446 | { | 446 | { |
447 | struct vfsmount *child_mnt; | 447 | struct vfsmount *child_mnt; |
448 | spin_lock(&vfsmount_lock); | 448 | spin_lock(&vfsmount_lock); |
449 | if ((child_mnt = __lookup_mnt(mnt, dentry, 1))) | 449 | if ((child_mnt = __lookup_mnt(path->mnt, path->dentry, 1))) |
450 | mntget(child_mnt); | 450 | mntget(child_mnt); |
451 | spin_unlock(&vfsmount_lock); | 451 | spin_unlock(&vfsmount_lock); |
452 | return child_mnt; | 452 | return child_mnt; |