PATCH 2.6.13-rc7-mm1] v9fs: adjust follow_link and put_link to match new VFS API
Subsystems (2)
[PATCH] v9fs: adjust follow_link and put_link to match new VFS API
In 2.6.13-rc7 the prototypes for follow_link and put_link were changed to include support for a cookie to help reclaim resources. This patch adjusts their definitions in the v9fs implementation.
---
commit 30bdd61e96418043a07d2da71bcd757a0341113f
tree 3e268ece4b911b960b47b47182972d8f439667da
parent e189afc5ed8102a56f74cb5be91a6bf3e478a06a
author Eric Van Hensbergen <[email protected]> Sun, 28 Aug 2005 16:33:42 -0500
committer Eric Van Hensbergen <[email protected]> Sun, 28 Aug 2005 16:33:42 -0500
fs/9p/vfs_inode.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
fs/9p/vfs_inode.c +0 -1
@@ -1089,7 +1089,7 @@ static int v9fs_vfs_readlink(struct dent* */ -static int v9fs_vfs_follow_link(struct dentry *dentry, struct nameidata
*nd)
+static void *v9fs_vfs_follow_link(struct dentry *dentry, struct nameidata *nd)
{
int len = 0;
char *link = __getname();
@@ -1109,7 +1109,7 @@ static int v9fs_vfs_follow_link(struct d
}
nd_set_link(nd, link);
- return 0;
+ return NULL;
}
/**
@@ -1119,7 +1119,7 @@ static int v9fs_vfs_follow_link(struct d
*
*/
-static void v9fs_vfs_put_link(struct dentry *dentry, struct nameidata *nd)
+static void v9fs_vfs_put_link(struct dentry *dentry, struct nameidata *nd, void *p)
{
char *s = nd_get_link(nd);