Skip to content

Commit d7a60d5

Browse files
Paolo 'Blaisorblade' GiarrussoLinus Torvalds
authored andcommitted
[PATCH] Fixup symlink function pointers for hppfs [for 2.6.13]
Update hppfs for the symlink functions prototype change. Yes, I know the code I leave there is still _bogus_, see next patch for this. Signed-off-by: Paolo 'Blaisorblade' Giarrusso <blaisorblade@yahoo.it> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
1 parent 7c657f2 commit d7a60d5

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

fs/hppfs/hppfs_kern.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -679,25 +679,25 @@ static int hppfs_readlink(struct dentry *dentry, char *buffer, int buflen)
679679
return(n);
680680
}
681681

682-
static int hppfs_follow_link(struct dentry *dentry, struct nameidata *nd)
682+
static void* hppfs_follow_link(struct dentry *dentry, struct nameidata *nd)
683683
{
684684
struct file *proc_file;
685685
struct dentry *proc_dentry;
686-
int (*follow_link)(struct dentry *, struct nameidata *);
687-
int err, n;
686+
void * (*follow_link)(struct dentry *, struct nameidata *);
687+
void *ret;
688688

689689
proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry;
690690
proc_file = dentry_open(dget(proc_dentry), NULL, O_RDONLY);
691-
err = PTR_ERR(proc_dentry);
692-
if(IS_ERR(proc_dentry))
693-
return(err);
691+
692+
if (IS_ERR(proc_dentry))
693+
return proc_dentry;
694694

695695
follow_link = proc_dentry->d_inode->i_op->follow_link;
696-
n = (*follow_link)(proc_dentry, nd);
696+
ret = (*follow_link)(proc_dentry, nd);
697697

698698
fput(proc_file);
699699

700-
return(n);
700+
return ret;
701701
}
702702

703703
static struct inode_operations hppfs_dir_iops = {

0 commit comments

Comments
 (0)