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/namei.c | |
parent | 79ed0226198c628133530b179a90dbf42b1c2eba (diff) |
switch lookup_mnt()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fs/namei.c b/fs/namei.c index c006bc61d1ea..527119afb6a5 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -702,7 +702,7 @@ static int __follow_mount(struct path *path) | |||
702 | { | 702 | { |
703 | int res = 0; | 703 | int res = 0; |
704 | while (d_mountpoint(path->dentry)) { | 704 | while (d_mountpoint(path->dentry)) { |
705 | struct vfsmount *mounted = lookup_mnt(path->mnt, path->dentry); | 705 | struct vfsmount *mounted = lookup_mnt(path); |
706 | if (!mounted) | 706 | if (!mounted) |
707 | break; | 707 | break; |
708 | dput(path->dentry); | 708 | dput(path->dentry); |
@@ -718,7 +718,7 @@ static int __follow_mount(struct path *path) | |||
718 | static void follow_mount(struct path *path) | 718 | static void follow_mount(struct path *path) |
719 | { | 719 | { |
720 | while (d_mountpoint(path->dentry)) { | 720 | while (d_mountpoint(path->dentry)) { |
721 | struct vfsmount *mounted = lookup_mnt(path->mnt, path->dentry); | 721 | struct vfsmount *mounted = lookup_mnt(path); |
722 | if (!mounted) | 722 | if (!mounted) |
723 | break; | 723 | break; |
724 | dput(path->dentry); | 724 | dput(path->dentry); |
@@ -735,7 +735,7 @@ int follow_down(struct path *path) | |||
735 | { | 735 | { |
736 | struct vfsmount *mounted; | 736 | struct vfsmount *mounted; |
737 | 737 | ||
738 | mounted = lookup_mnt(path->mnt, path->dentry); | 738 | mounted = lookup_mnt(path); |
739 | if (mounted) { | 739 | if (mounted) { |
740 | dput(path->dentry); | 740 | dput(path->dentry); |
741 | mntput(path->mnt); | 741 | mntput(path->mnt); |