patch-2.1.44 linux/fs/proc/inode.c

Next file: linux/fs/proc/kmsg.c
Previous file: linux/fs/proc/generic.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.43/linux/fs/proc/inode.c linux/fs/proc/inode.c
@@ -131,12 +131,13 @@
 	s->s_magic = PROC_SUPER_MAGIC;
 	s->s_op = &proc_sops;
 	unlock_super(s);
-	if (!(s->s_mounted = proc_get_inode(s, PROC_ROOT_INO, &proc_root))) {
+	s->s_root = d_alloc_root(proc_get_inode(s, PROC_ROOT_INO, &proc_root), NULL);
+	if (!s->s_root) {
 		s->s_dev = 0;
 		printk("get root inode failed\n");
 		return NULL;
 	}
-	parse_options(data, &s->s_mounted->i_uid, &s->s_mounted->i_gid);
+	parse_options(data, &s->s_root->d_inode->i_uid, &s->s_root->d_inode->i_gid);
 	return s;
 }
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov