[linux-yocto] [PATCH 3/3] yaffs2: using new ->follow_link() and ->put_link() calling conventions
Kevin Hao
kexin.hao at windriver.com
Tue Feb 23 22:37:13 PST 2016
As what we did in commit 680baacbca69 ("new ->follow_link() and
->put_link() calling conventions").
Signed-off-by: Kevin Hao <kexin.hao at windriver.com>
---
fs/yaffs2/yaffs_vfs.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/fs/yaffs2/yaffs_vfs.c b/fs/yaffs2/yaffs_vfs.c
index 0a3e9da..1494c8f 100644
--- a/fs/yaffs2/yaffs_vfs.c
+++ b/fs/yaffs2/yaffs_vfs.c
@@ -1060,7 +1060,7 @@ static int yaffs_readlink(struct dentry *dentry, char __user * buffer,
}
#if (YAFFS_NEW_FOLLOW_LINK == 1)
-static void *yaffs_follow_link(struct dentry *dentry, struct nameidata *nd)
+static const char *yaffs_follow_link(struct dentry *dentry, void **cookie)
{
void *ret;
#else
@@ -1082,7 +1082,7 @@ static int yaffs_follow_link(struct dentry *dentry, struct nameidata *nd)
goto out;
}
#if (YAFFS_NEW_FOLLOW_LINK == 1)
- nd_set_link(nd, alias);
+ *cookie = alias;
ret = alias;
out:
if (ret_int)
@@ -1114,9 +1114,9 @@ static void yaffs_put_inode(struct inode *inode)
#endif
#if (YAFFS_NEW_FOLLOW_LINK == 1)
-void yaffs_put_link(struct dentry *dentry, struct nameidata *nd, void *alias)
+void yaffs_put_link(struct inode *inode, void *cookie)
{
- kfree(alias);
+ kfree(cookie);
}
#endif
--
1.9.1
More information about the linux-yocto
mailing list