diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-02 13:37:52 -0400 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2015-05-10 22:20:15 -0400 |
commit | 6e77137b363b8d866ac29c5a0c95e953614fb2d8 (patch) | |
tree | 63a8918e58914c9ae8b35fbad37d5472e943405d /fs/proc/namespaces.c | |
parent | 8402752ecf829f67527072151fa680292a519193 (diff) |
don't pass nameidata to ->follow_link()
its only use is getting passed to nd_jump_link(), which can obtain
it from current->nameidata
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/proc/namespaces.c')
-rw-r--r-- | fs/proc/namespaces.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fs/proc/namespaces.c b/fs/proc/namespaces.c index 10d24dd096e8..f6e8354b8cea 100644 --- a/fs/proc/namespaces.c +++ b/fs/proc/namespaces.c | |||
@@ -30,7 +30,7 @@ static const struct proc_ns_operations *ns_entries[] = { | |||
30 | &mntns_operations, | 30 | &mntns_operations, |
31 | }; | 31 | }; |
32 | 32 | ||
33 | static const char *proc_ns_follow_link(struct dentry *dentry, void **cookie, struct nameidata *nd) | 33 | static const char *proc_ns_follow_link(struct dentry *dentry, void **cookie) |
34 | { | 34 | { |
35 | struct inode *inode = d_inode(dentry); | 35 | struct inode *inode = d_inode(dentry); |
36 | const struct proc_ns_operations *ns_ops = PROC_I(inode)->ns_ops; | 36 | const struct proc_ns_operations *ns_ops = PROC_I(inode)->ns_ops; |
@@ -45,7 +45,7 @@ static const char *proc_ns_follow_link(struct dentry *dentry, void **cookie, str | |||
45 | if (ptrace_may_access(task, PTRACE_MODE_READ)) { | 45 | if (ptrace_may_access(task, PTRACE_MODE_READ)) { |
46 | error = ns_get_path(&ns_path, task, ns_ops); | 46 | error = ns_get_path(&ns_path, task, ns_ops); |
47 | if (!error) | 47 | if (!error) |
48 | nd_jump_link(nd, &ns_path); | 48 | nd_jump_link(&ns_path); |
49 | } | 49 | } |
50 | put_task_struct(task); | 50 | put_task_struct(task); |
51 | return error; | 51 | return error; |