diff options
author | Ralf Baechle <ralf@linux-mips.org> | 1997-06-17 13:20:30 +0000 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 1997-06-17 13:20:30 +0000 |
commit | 7acb77a6e7bddd4c4c5aa975bbf976927c013798 (patch) | |
tree | 4139829ec6edb85f73774bb95cdec376758bfc73 /fs/autofs/symlink.c | |
parent | 64d58d4c8cd6a89ee218301ec0dc0ebfec91a4db (diff) |
Merge with 2.1.43.
Diffstat (limited to 'fs/autofs/symlink.c')
-rw-r--r-- | fs/autofs/symlink.c | 34 |
1 files changed, 0 insertions, 34 deletions
diff --git a/fs/autofs/symlink.c b/fs/autofs/symlink.c index 46c333103..d6ac82ed4 100644 --- a/fs/autofs/symlink.c +++ b/fs/autofs/symlink.c @@ -14,39 +14,6 @@ #include <linux/sched.h> #include "autofs_i.h" -static int autofs_follow_link(struct inode *dir, struct inode *inode, - int flag, int mode, struct inode **res_inode) -{ - int error; - char *link; - - *res_inode = NULL; - if (!dir) { - dir = current->fs->root; - dir->i_count++; - } - if (!inode) { - iput(dir); - return -ENOENT; - } - if (!S_ISLNK(inode->i_mode)) { - iput(dir); - *res_inode = inode; - return 0; - } - if (current->link_count > 5) { - iput(dir); - iput(inode); - return -ELOOP; - } - link = ((struct autofs_symlink *)inode->u.generic_ip)->data; - current->link_count++; - error = open_namei(link,flag,mode,res_inode,dir); - current->link_count--; - iput(inode); - return error; -} - static int autofs_readlink(struct inode *inode, char *buffer, int buflen) { struct autofs_symlink *sl; @@ -76,7 +43,6 @@ struct inode_operations autofs_symlink_inode_operations = { NULL, /* mknod */ NULL, /* rename */ autofs_readlink, /* readlink */ - autofs_follow_link, /* follow_link */ NULL, /* readpage */ NULL, /* writepage */ NULL, /* bmap */ |