diff options
author | Pavel Shilovsky <piastry@etersoft.ru> | 2011-05-26 15:35:47 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-05-26 23:53:23 -0400 |
commit | 25c7f41e9234f60af30e086278f1de7974f8816f (patch) | |
tree | 41cb4da532da30418da2d33e5376ddbf9f65958a /fs/cifs/cifsglob.h | |
parent | f87d39d951329cd8f462bf9007d334122c0599d0 (diff) |
CIFS: Migrate to shared superblock model
Add cifs_match_super to use in sget to share superblock between mounts
that have the same //server/sharename, credentials and mount options.
It helps us to improve performance on work with future SMB2.1 leases.
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Pavel Shilovsky <piastry@etersoft.ru>
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 68ec457f8476..ca0c3789206e 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -210,6 +210,25 @@ struct smb_vol { | |||
210 | struct nls_table *local_nls; | 210 | struct nls_table *local_nls; |
211 | }; | 211 | }; |
212 | 212 | ||
213 | #define CIFS_MOUNT_MASK (CIFS_MOUNT_NO_PERM | CIFS_MOUNT_SET_UID | \ | ||
214 | CIFS_MOUNT_SERVER_INUM | CIFS_MOUNT_DIRECT_IO | \ | ||
215 | CIFS_MOUNT_NO_XATTR | CIFS_MOUNT_MAP_SPECIAL_CHR | \ | ||
216 | CIFS_MOUNT_UNX_EMUL | CIFS_MOUNT_NO_BRL | \ | ||
217 | CIFS_MOUNT_CIFS_ACL | CIFS_MOUNT_OVERR_UID | \ | ||
218 | CIFS_MOUNT_OVERR_GID | CIFS_MOUNT_DYNPERM | \ | ||
219 | CIFS_MOUNT_NOPOSIXBRL | CIFS_MOUNT_NOSSYNC | \ | ||
220 | CIFS_MOUNT_FSCACHE | CIFS_MOUNT_MF_SYMLINKS | \ | ||
221 | CIFS_MOUNT_MULTIUSER | CIFS_MOUNT_STRICT_IO) | ||
222 | |||
223 | #define CIFS_MS_MASK (MS_RDONLY | MS_MANDLOCK | MS_NOEXEC | MS_NOSUID | \ | ||
224 | MS_NODEV | MS_SYNCHRONOUS) | ||
225 | |||
226 | struct cifs_mnt_data { | ||
227 | struct cifs_sb_info *cifs_sb; | ||
228 | struct smb_vol *vol; | ||
229 | int flags; | ||
230 | }; | ||
231 | |||
213 | struct TCP_Server_Info { | 232 | struct TCP_Server_Info { |
214 | struct list_head tcp_ses_list; | 233 | struct list_head tcp_ses_list; |
215 | struct list_head smb_ses_list; | 234 | struct list_head smb_ses_list; |