summaryrefslogtreecommitdiffstats
path: root/fs/minix/symlink.c
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
committer <ralf@linux-mips.org>1997-01-07 02:33:00 +0000
commitbeb116954b9b7f3bb56412b2494b562f02b864b1 (patch)
tree120e997879884e1b9d93b265221b939d2ef1ade1 /fs/minix/symlink.c
parent908d4681a1dc3792ecafbe64265783a86c4cccb6 (diff)
Import of Linux/MIPS 2.1.14
Diffstat (limited to 'fs/minix/symlink.c')
-rw-r--r--fs/minix/symlink.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/fs/minix/symlink.c b/fs/minix/symlink.c
index 86dabf936..9a340ec9b 100644
--- a/fs/minix/symlink.c
+++ b/fs/minix/symlink.c
@@ -6,18 +6,14 @@
* minix symlink handling code
*/
-#ifdef MODULE
-#include <linux/module.h>
-#endif
-
-#include <asm/segment.h>
-
#include <linux/errno.h>
#include <linux/sched.h>
#include <linux/fs.h>
#include <linux/minix_fs.h>
#include <linux/stat.h>
+#include <asm/uaccess.h>
+
static int minix_readlink(struct inode *, char *, int);
static int minix_follow_link(struct inode *, struct inode *, int, int, struct inode **);
@@ -37,6 +33,8 @@ struct inode_operations minix_symlink_inode_operations = {
NULL, /* rename */
minix_readlink, /* readlink */
minix_follow_link, /* follow_link */
+ NULL, /* readpage */
+ NULL, /* writepage */
NULL, /* bmap */
NULL, /* truncate */
NULL /* permission */
@@ -99,7 +97,7 @@ static int minix_readlink(struct inode * inode, char * buffer, int buflen)
i = 0;
while (i<buflen && (c = bh->b_data[i])) {
i++;
- put_fs_byte(c,buffer++);
+ put_user(c,buffer++);
}
brelse(bh);
return i;