From beb116954b9b7f3bb56412b2494b562f02b864b1 Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Tue, 7 Jan 1997 02:33:00 +0000 Subject: Import of Linux/MIPS 2.1.14 --- fs/nfs/symlink.c | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'fs/nfs/symlink.c') diff --git a/fs/nfs/symlink.c b/fs/nfs/symlink.c index 85c40b495..e628e0182 100644 --- a/fs/nfs/symlink.c +++ b/fs/nfs/symlink.c @@ -8,12 +8,6 @@ * nfs symlink handling code */ -#ifdef MODULE -#include -#endif - -#include - #include #include #include @@ -22,6 +16,8 @@ #include #include +#include + static int nfs_readlink(struct inode *, char *, int); static int nfs_follow_link(struct inode *, struct inode *, int, int, struct inode **); @@ -42,6 +38,8 @@ struct inode_operations nfs_symlink_inode_operations = { NULL, /* rename */ nfs_readlink, /* readlink */ nfs_follow_link, /* follow_link */ + NULL, /* readpage */ + NULL, /* writepage */ NULL, /* bmap */ NULL, /* truncate */ NULL /* permission */ @@ -111,8 +109,8 @@ static int nfs_readlink(struct inode *inode, char *buffer, int buflen) &res, &len, buflen); iput(inode); if (! error) { - memcpy_tofs(buffer, res, len); - put_fs_byte('\0', buffer + len); + copy_to_user(buffer, res, len); + put_user('\0', buffer + len); error = len; } kfree(mem); -- cgit v1.2.3