patch-2.1.51 linux/fs/smbfs/sock.c

Next file: linux/fs/super.c
Previous file: linux/fs/smbfs/mmap.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.50/linux/fs/smbfs/sock.c linux/fs/smbfs/sock.c
@@ -128,7 +128,7 @@
 
 	if ((server == NULL)
 	    || ((file = server->sock_file) == NULL)
-	    || ((inode = file->f_inode) == NULL)
+	    || ((inode = file->f_dentry->d_inode) == NULL)
 	    || (!S_ISSOCK(inode->i_mode)))
 	{
 		printk("smb_catch_keepalive: did not get valid server!\n");
@@ -175,7 +175,7 @@
 
 	if ((server == NULL)
 	    || ((file = server->sock_file) == NULL)
-	    || ((inode = file->f_inode) == NULL)
+	    || ((inode = file->f_dentry->d_inode) == NULL)
 	    || (!S_ISSOCK(inode->i_mode)))
 	{
 		printk("smb_dont_catch_keepalive: "
@@ -322,7 +322,7 @@
 		return NULL;
 	if ((file = server->sock_file) == NULL)
 		return NULL;
-	if ((inode = file->f_inode) == NULL)
+	if ((inode = file->f_dentry->d_inode) == NULL)
 		return NULL;
 	return &(inode->u.socket_i);
 }

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