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>
This commit is contained in:
@@ -140,7 +140,7 @@ struct ovl_link_data {
|
||||
void *cookie;
|
||||
};
|
||||
|
||||
static const char *ovl_follow_link(struct dentry *dentry, void **cookie, struct nameidata *nd)
|
||||
static const char *ovl_follow_link(struct dentry *dentry, void **cookie)
|
||||
{
|
||||
struct dentry *realdentry;
|
||||
struct inode *realinode;
|
||||
@@ -160,7 +160,7 @@ static const char *ovl_follow_link(struct dentry *dentry, void **cookie, struct
|
||||
data->realdentry = realdentry;
|
||||
}
|
||||
|
||||
ret = realinode->i_op->follow_link(realdentry, cookie, nd);
|
||||
ret = realinode->i_op->follow_link(realdentry, cookie);
|
||||
if (IS_ERR_OR_NULL(ret)) {
|
||||
kfree(data);
|
||||
return ret;
|
||||
|
Reference in New Issue
Block a user