diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1998-03-17 22:05:47 +0000 |
commit | 27cfca1ec98e91261b1a5355d10a8996464b63af (patch) | |
tree | 8e895a53e372fa682b4c0a585b9377d67ed70d0e /fs/autofs/symlink.c | |
parent | 6a76fb7214c477ccf6582bd79c5b4ccc4f9c41b1 (diff) |
Look Ma' what I found on my harddisk ...
o New faster syscalls for 2.1.x, too
o Upgrade to 2.1.89.
Don't try to run this. It's flaky as hell. But feel free to debug ...
Diffstat (limited to 'fs/autofs/symlink.c')
-rw-r--r-- | fs/autofs/symlink.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/fs/autofs/symlink.c b/fs/autofs/symlink.c index b42955feb..5c5550f91 100644 --- a/fs/autofs/symlink.c +++ b/fs/autofs/symlink.c @@ -14,23 +14,24 @@ #include <linux/sched.h> #include "autofs_i.h" -static int autofs_readlink(struct inode *inode, char *buffer, int buflen) +static int autofs_readlink(struct dentry *dentry, char *buffer, int buflen) { struct autofs_symlink *sl; int len; - sl = (struct autofs_symlink *)inode->u.generic_ip; + sl = (struct autofs_symlink *)dentry->d_inode->u.generic_ip; len = sl->len; if (len > buflen) len = buflen; - copy_to_user(buffer,sl->data,len); + copy_to_user(buffer, sl->data, len); return len; } -static struct dentry * autofs_follow_link(struct inode *inode, struct dentry *base) +static struct dentry * autofs_follow_link(struct dentry *dentry, + struct dentry *base) { struct autofs_symlink *sl; - sl = (struct autofs_symlink *)inode->u.generic_ip; + sl = (struct autofs_symlink *)dentry->d_inode->u.generic_ip; return lookup_dentry(sl->data, base, 1); } |