Skip to content

Commit

Permalink
[PATCH] Fixup symlink function pointers for hppfs [for 2.6.13]
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
  • Loading branch information
Paolo 'Blaisorblade' Giarrusso authored and Linus Torvalds committed Aug 26, 2005
1 parent 7c657f2 commit d7a60d5
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions fs/hppfs/hppfs_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -679,25 +679,25 @@ static int hppfs_readlink(struct dentry *dentry, char *buffer, int buflen)
return(n);
}

static int hppfs_follow_link(struct dentry *dentry, struct nameidata *nd)
static void* hppfs_follow_link(struct dentry *dentry, struct nameidata *nd)
{
struct file *proc_file;
struct dentry *proc_dentry;
int (*follow_link)(struct dentry *, struct nameidata *);
int err, n;
void * (*follow_link)(struct dentry *, struct nameidata *);
void *ret;

proc_dentry = HPPFS_I(dentry->d_inode)->proc_dentry;
proc_file = dentry_open(dget(proc_dentry), NULL, O_RDONLY);
err = PTR_ERR(proc_dentry);
if(IS_ERR(proc_dentry))
return(err);

if (IS_ERR(proc_dentry))
return proc_dentry;

follow_link = proc_dentry->d_inode->i_op->follow_link;
n = (*follow_link)(proc_dentry, nd);
ret = (*follow_link)(proc_dentry, nd);

fput(proc_file);

return(n);
return ret;
}

static struct inode_operations hppfs_dir_iops = {
Expand Down

0 comments on commit d7a60d5

Please sign in to comment.