patch-2.4.0-test7 linux/net/socket.c

Next file: linux/net/sunrpc/sched.c
Previous file: linux/net/sched/sch_red.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.0-test6/linux/net/socket.c linux/net/socket.c
@@ -443,6 +443,7 @@
 	if (!inode)
 		return NULL;
 
+	inode->i_sb = sock_mnt->mnt_sb;
 	sock = socki_lookup(inode);
 
 	inode->i_mode = S_IFSOCK|S_IRWXUGO;
@@ -1711,6 +1712,9 @@
 
 	proto_init();
 
+	register_filesystem(&sock_fs_type);
+	sock_mnt = kern_mount(&sock_fs_type);
+
 	/*
 	 *	The netlink device handler may be needed early.
 	 */
@@ -1724,8 +1728,6 @@
 #ifdef CONFIG_NETFILTER
 	netfilter_init();
 #endif
-	register_filesystem(&sock_fs_type);
-	sock_mnt = kern_mount(&sock_fs_type);
 }
 
 int socket_get_info(char *buffer, char **start, off_t offset, int length)

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)