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

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

diff -u --recursive --new-file v2.1.50/linux/fs/smbfs/inode.c linux/fs/smbfs/inode.c
@@ -228,7 +228,7 @@
 		sb->s_dev = 0;
 		return NULL;
 	}
-	if (!S_ISSOCK(filp->f_inode->i_mode))
+	if (!S_ISSOCK(filp->f_dentry->d_inode->i_mode))
 	{
 		printk("smb_read_super: not a socket!\n");
 		sb->s_dev = 0;
@@ -305,7 +305,8 @@
 	}
 	smb_init_root_dirent(server, &(server->root.finfo));
 
-	if (!(sb->s_mounted = iget(sb, smb_info_ino(&(server->root)))))
+	if (!(sb->s_root = d_alloc_root(iget(sb, 
+	                                smb_info_ino(&(server->root))),NULL)))
 	{
 		sb->s_dev = 0;
 		printk("smb_read_super: get root inode failed\n");

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