patch-2.1.78 linux/fs/autofs/symlink.c
Next file: linux/fs/bad_inode.c
Previous file: linux/fs/attr.c
Back to the patch index
Back to the overall index
- Lines: 30
- Date:
Sun Jan 4 00:53:43 1998
- Orig file:
v2.1.77/linux/fs/autofs/symlink.c
- Orig date:
Mon Aug 4 16:25:38 1997
diff -u --recursive --new-file v2.1.77/linux/fs/autofs/symlink.c linux/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);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov