patch-2.1.123 linux/fs/proc/proc_devtree.c
Next file: linux/fs/proc/root.c
Previous file: linux/fs/proc/mem.c
Back to the patch index
Back to the overall index
- Lines: 28
- Date:
Sat Sep 19 13:43:36 1998
- Orig file:
v2.1.122/linux/fs/proc/proc_devtree.c
- Orig date:
Thu Apr 23 20:21:37 1998
diff -u --recursive --new-file v2.1.122/linux/fs/proc/proc_devtree.c linux/fs/proc/proc_devtree.c
@@ -42,7 +42,7 @@
*/
static int devtree_readlink(struct dentry *, char *, int);
-static struct dentry *devtree_follow_link(struct dentry *, struct dentry *);
+static struct dentry *devtree_follow_link(struct dentry *, struct dentry *, unsigned int);
struct inode_operations devtree_symlink_inode_operations = {
NULL, /* no file-operations */
@@ -66,7 +66,8 @@
};
static struct dentry *devtree_follow_link(struct dentry *dentry,
- struct dentry *base)
+ struct dentry *base,
+ unsigned int follow)
{
struct inode *inode = dentry->d_inode;
struct proc_dir_entry * de;
@@ -74,7 +75,7 @@
de = (struct proc_dir_entry *) inode->u.generic_ip;
link = (char *) de->data;
- return lookup_dentry(link, base, 1);
+ return lookup_dentry(link, base, follow);
}
static int devtree_readlink(struct dentry *dentry, char *buffer, int buflen)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov