patch-2.1.58 linux/include/linux/smb_fs_sb.h

Next file: linux/include/linux/sunrpc/sched.h
Previous file: linux/include/linux/smb_fs_i.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.1.57/linux/include/linux/smb_fs_sb.h linux/include/linux/smb_fs_sb.h
@@ -15,6 +15,11 @@
 #include <linux/smb.h>
 #include <linux/smb_mount.h>
 
+/* Get the server for the specified dentry */
+#define server_from_dentry(dentry) &dentry->d_sb->u.smbfs_sb
+#define SB_of(server) ((struct super_block *) ((char *)(server) - \
+	(unsigned long)(&((struct super_block *)0)->u.smbfs_sb)))
+
 struct smb_sb_info {
         enum smb_conn_state state;
 	struct file * sock_file;
@@ -29,6 +34,7 @@
 	struct smb_conn_opt opt;
 
 	struct semaphore sem;
+	struct wait_queue * wait;
 
 	__u32              packet_size;
 	unsigned char *    packet;

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