diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2009-04-18 03:26:48 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2009-06-11 21:36:00 -0400 |
commit | bab77ebf51e3902f608ecf08c9d34a0a52ac35a9 (patch) | |
tree | 710a8bba0a4f3738b32e4e5230ccf3665cd1b815 /fs/namei.c | |
parent | e64c390ca0b60fd2119331ef1fa888d7ea27e424 (diff) |
switch follow_up() to struct path
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/namei.c')
-rw-r--r-- | fs/namei.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/fs/namei.c b/fs/namei.c index 4379ef989709..8c1f48ae68e7 100644 --- a/fs/namei.c +++ b/fs/namei.c | |||
@@ -675,23 +675,23 @@ loop: | |||
675 | return err; | 675 | return err; |
676 | } | 676 | } |
677 | 677 | ||
678 | int follow_up(struct vfsmount **mnt, struct dentry **dentry) | 678 | int follow_up(struct path *path) |
679 | { | 679 | { |
680 | struct vfsmount *parent; | 680 | struct vfsmount *parent; |
681 | struct dentry *mountpoint; | 681 | struct dentry *mountpoint; |
682 | spin_lock(&vfsmount_lock); | 682 | spin_lock(&vfsmount_lock); |
683 | parent=(*mnt)->mnt_parent; | 683 | parent = path->mnt->mnt_parent; |
684 | if (parent == *mnt) { | 684 | if (parent == path->mnt) { |
685 | spin_unlock(&vfsmount_lock); | 685 | spin_unlock(&vfsmount_lock); |
686 | return 0; | 686 | return 0; |
687 | } | 687 | } |
688 | mntget(parent); | 688 | mntget(parent); |
689 | mountpoint=dget((*mnt)->mnt_mountpoint); | 689 | mountpoint = dget(path->mnt->mnt_mountpoint); |
690 | spin_unlock(&vfsmount_lock); | 690 | spin_unlock(&vfsmount_lock); |
691 | dput(*dentry); | 691 | dput(path->dentry); |
692 | *dentry = mountpoint; | 692 | path->dentry = mountpoint; |
693 | mntput(*mnt); | 693 | mntput(path->mnt); |
694 | *mnt = parent; | 694 | path->mnt = parent; |
695 | return 1; | 695 | return 1; |
696 | } | 696 | } |
697 | 697 | ||