mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 06:21:31 +00:00
[PATCH] Fix up symlink function pointers
This fixes up the symlink functions for the calling convention change: * afs, autofs4, befs, devfs, freevxfs, jffs2, jfs, ncpfs, procfs, smbfs, sysvfs, ufs, xfs - prototype change for ->follow_link() * befs, smbfs, xfs - same for ->put_link() Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
cc314eef01
commit
008b150a3c
13 changed files with 37 additions and 37 deletions
|
@ -34,7 +34,7 @@ int smb_symlink(struct inode *inode, struct dentry *dentry, const char *oldname)
|
|||
return smb_proc_symlink(server_from_dentry(dentry), dentry, oldname);
|
||||
}
|
||||
|
||||
static int smb_follow_link(struct dentry *dentry, struct nameidata *nd)
|
||||
static void *smb_follow_link(struct dentry *dentry, struct nameidata *nd)
|
||||
{
|
||||
char *link = __getname();
|
||||
DEBUG1("followlink of %s/%s\n", DENTRY_PATH(dentry));
|
||||
|
@ -52,10 +52,10 @@ static int smb_follow_link(struct dentry *dentry, struct nameidata *nd)
|
|||
}
|
||||
}
|
||||
nd_set_link(nd, link);
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void smb_put_link(struct dentry *dentry, struct nameidata *nd)
|
||||
static void smb_put_link(struct dentry *dentry, struct nameidata *nd, void *p)
|
||||
{
|
||||
char *s = nd_get_link(nd);
|
||||
if (!IS_ERR(s))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue