mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-17 20:25:19 +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
|
@ -374,7 +374,7 @@ linvfs_rename(
|
|||
* we need to be very careful about how much stack we use.
|
||||
* uio is kmalloced for this reason...
|
||||
*/
|
||||
STATIC int
|
||||
STATIC void *
|
||||
linvfs_follow_link(
|
||||
struct dentry *dentry,
|
||||
struct nameidata *nd)
|
||||
|
@ -391,14 +391,14 @@ linvfs_follow_link(
|
|||
link = (char *)kmalloc(MAXNAMELEN+1, GFP_KERNEL);
|
||||
if (!link) {
|
||||
nd_set_link(nd, ERR_PTR(-ENOMEM));
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
uio = (uio_t *)kmalloc(sizeof(uio_t), GFP_KERNEL);
|
||||
if (!uio) {
|
||||
kfree(link);
|
||||
nd_set_link(nd, ERR_PTR(-ENOMEM));
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
vp = LINVFS_GET_VP(dentry->d_inode);
|
||||
|
@ -422,10 +422,10 @@ linvfs_follow_link(
|
|||
kfree(uio);
|
||||
|
||||
nd_set_link(nd, link);
|
||||
return 0;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void linvfs_put_link(struct dentry *dentry, struct nameidata *nd)
|
||||
static void linvfs_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