diff options
author | Steve French <sfrench@us.ibm.com> | 2011-05-27 00:34:02 -0400 |
---|---|---|
committer | Steve French <sfrench@us.ibm.com> | 2011-05-27 00:34:02 -0400 |
commit | 96daf2b09178d8ebde2b0d56b027de917c17dfdf (patch) | |
tree | 74802fa44e87925e49067d5106eb762cc27b9b97 /fs/cifs/connect.c | |
parent | 07cc6cf9ef84bcf6a60ee513332bcb0ad5d628d8 (diff) |
[CIFS] Rename three structures to avoid camel case
secMode to sec_mode
and
cifsTconInfo to cifs_tcon
and
cifsSesInfo to cifs_ses
Signed-off-by: Steve French <sfrench@us.ibm.com>
Diffstat (limited to 'fs/cifs/connect.c')
-rw-r--r-- | fs/cifs/connect.c | 90 |
1 files changed, 45 insertions, 45 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index 21bc83586beb..6d88b82537c3 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -79,8 +79,8 @@ cifs_reconnect(struct TCP_Server_Info *server) | |||
79 | { | 79 | { |
80 | int rc = 0; | 80 | int rc = 0; |
81 | struct list_head *tmp, *tmp2; | 81 | struct list_head *tmp, *tmp2; |
82 | struct cifsSesInfo *ses; | 82 | struct cifs_ses *ses; |
83 | struct cifsTconInfo *tcon; | 83 | struct cifs_tcon *tcon; |
84 | struct mid_q_entry *mid_entry; | 84 | struct mid_q_entry *mid_entry; |
85 | struct list_head retry_list; | 85 | struct list_head retry_list; |
86 | 86 | ||
@@ -102,11 +102,11 @@ cifs_reconnect(struct TCP_Server_Info *server) | |||
102 | cFYI(1, "%s: marking sessions and tcons for reconnect", __func__); | 102 | cFYI(1, "%s: marking sessions and tcons for reconnect", __func__); |
103 | spin_lock(&cifs_tcp_ses_lock); | 103 | spin_lock(&cifs_tcp_ses_lock); |
104 | list_for_each(tmp, &server->smb_ses_list) { | 104 | list_for_each(tmp, &server->smb_ses_list) { |
105 | ses = list_entry(tmp, struct cifsSesInfo, smb_ses_list); | 105 | ses = list_entry(tmp, struct cifs_ses, smb_ses_list); |
106 | ses->need_reconnect = true; | 106 | ses->need_reconnect = true; |
107 | ses->ipc_tid = 0; | 107 | ses->ipc_tid = 0; |
108 | list_for_each(tmp2, &ses->tcon_list) { | 108 | list_for_each(tmp2, &ses->tcon_list) { |
109 | tcon = list_entry(tmp2, struct cifsTconInfo, tcon_list); | 109 | tcon = list_entry(tmp2, struct cifs_tcon, tcon_list); |
110 | tcon->need_reconnect = true; | 110 | tcon->need_reconnect = true; |
111 | } | 111 | } |
112 | } | 112 | } |
@@ -1597,10 +1597,10 @@ match_security(struct TCP_Server_Info *server, struct smb_vol *vol) | |||
1597 | 1597 | ||
1598 | /* now check if signing mode is acceptable */ | 1598 | /* now check if signing mode is acceptable */ |
1599 | if ((secFlags & CIFSSEC_MAY_SIGN) == 0 && | 1599 | if ((secFlags & CIFSSEC_MAY_SIGN) == 0 && |
1600 | (server->secMode & SECMODE_SIGN_REQUIRED)) | 1600 | (server->sec_mode & SECMODE_SIGN_REQUIRED)) |
1601 | return false; | 1601 | return false; |
1602 | else if (((secFlags & CIFSSEC_MUST_SIGN) == CIFSSEC_MUST_SIGN) && | 1602 | else if (((secFlags & CIFSSEC_MUST_SIGN) == CIFSSEC_MUST_SIGN) && |
1603 | (server->secMode & | 1603 | (server->sec_mode & |
1604 | (SECMODE_SIGN_ENABLED|SECMODE_SIGN_REQUIRED)) == 0) | 1604 | (SECMODE_SIGN_ENABLED|SECMODE_SIGN_REQUIRED)) == 0) |
1605 | return false; | 1605 | return false; |
1606 | 1606 | ||
@@ -1827,7 +1827,7 @@ out_err: | |||
1827 | return ERR_PTR(rc); | 1827 | return ERR_PTR(rc); |
1828 | } | 1828 | } |
1829 | 1829 | ||
1830 | static int match_session(struct cifsSesInfo *ses, struct smb_vol *vol) | 1830 | static int match_session(struct cifs_ses *ses, struct smb_vol *vol) |
1831 | { | 1831 | { |
1832 | switch (ses->server->secType) { | 1832 | switch (ses->server->secType) { |
1833 | case Kerberos: | 1833 | case Kerberos: |
@@ -1851,10 +1851,10 @@ static int match_session(struct cifsSesInfo *ses, struct smb_vol *vol) | |||
1851 | return 1; | 1851 | return 1; |
1852 | } | 1852 | } |
1853 | 1853 | ||
1854 | static struct cifsSesInfo * | 1854 | static struct cifs_ses * |
1855 | cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb_vol *vol) | 1855 | cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb_vol *vol) |
1856 | { | 1856 | { |
1857 | struct cifsSesInfo *ses; | 1857 | struct cifs_ses *ses; |
1858 | 1858 | ||
1859 | spin_lock(&cifs_tcp_ses_lock); | 1859 | spin_lock(&cifs_tcp_ses_lock); |
1860 | list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { | 1860 | list_for_each_entry(ses, &server->smb_ses_list, smb_ses_list) { |
@@ -1869,7 +1869,7 @@ cifs_find_smb_ses(struct TCP_Server_Info *server, struct smb_vol *vol) | |||
1869 | } | 1869 | } |
1870 | 1870 | ||
1871 | static void | 1871 | static void |
1872 | cifs_put_smb_ses(struct cifsSesInfo *ses) | 1872 | cifs_put_smb_ses(struct cifs_ses *ses) |
1873 | { | 1873 | { |
1874 | int xid; | 1874 | int xid; |
1875 | struct TCP_Server_Info *server = ses->server; | 1875 | struct TCP_Server_Info *server = ses->server; |
@@ -1895,11 +1895,11 @@ cifs_put_smb_ses(struct cifsSesInfo *ses) | |||
1895 | 1895 | ||
1896 | static bool warned_on_ntlm; /* globals init to false automatically */ | 1896 | static bool warned_on_ntlm; /* globals init to false automatically */ |
1897 | 1897 | ||
1898 | static struct cifsSesInfo * | 1898 | static struct cifs_ses * |
1899 | cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info) | 1899 | cifs_get_smb_ses(struct TCP_Server_Info *server, struct smb_vol *volume_info) |
1900 | { | 1900 | { |
1901 | int rc = -ENOMEM, xid; | 1901 | int rc = -ENOMEM, xid; |
1902 | struct cifsSesInfo *ses; | 1902 | struct cifs_ses *ses; |
1903 | struct sockaddr_in *addr = (struct sockaddr_in *)&server->dstaddr; | 1903 | struct sockaddr_in *addr = (struct sockaddr_in *)&server->dstaddr; |
1904 | struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&server->dstaddr; | 1904 | struct sockaddr_in6 *addr6 = (struct sockaddr_in6 *)&server->dstaddr; |
1905 | 1905 | ||
@@ -2002,7 +2002,7 @@ get_ses_fail: | |||
2002 | return ERR_PTR(rc); | 2002 | return ERR_PTR(rc); |
2003 | } | 2003 | } |
2004 | 2004 | ||
2005 | static int match_tcon(struct cifsTconInfo *tcon, const char *unc) | 2005 | static int match_tcon(struct cifs_tcon *tcon, const char *unc) |
2006 | { | 2006 | { |
2007 | if (tcon->tidStatus == CifsExiting) | 2007 | if (tcon->tidStatus == CifsExiting) |
2008 | return 0; | 2008 | return 0; |
@@ -2011,15 +2011,15 @@ static int match_tcon(struct cifsTconInfo *tcon, const char *unc) | |||
2011 | return 1; | 2011 | return 1; |
2012 | } | 2012 | } |
2013 | 2013 | ||
2014 | static struct cifsTconInfo * | 2014 | static struct cifs_tcon * |
2015 | cifs_find_tcon(struct cifsSesInfo *ses, const char *unc) | 2015 | cifs_find_tcon(struct cifs_ses *ses, const char *unc) |
2016 | { | 2016 | { |
2017 | struct list_head *tmp; | 2017 | struct list_head *tmp; |
2018 | struct cifsTconInfo *tcon; | 2018 | struct cifs_tcon *tcon; |
2019 | 2019 | ||
2020 | spin_lock(&cifs_tcp_ses_lock); | 2020 | spin_lock(&cifs_tcp_ses_lock); |
2021 | list_for_each(tmp, &ses->tcon_list) { | 2021 | list_for_each(tmp, &ses->tcon_list) { |
2022 | tcon = list_entry(tmp, struct cifsTconInfo, tcon_list); | 2022 | tcon = list_entry(tmp, struct cifs_tcon, tcon_list); |
2023 | if (!match_tcon(tcon, unc)) | 2023 | if (!match_tcon(tcon, unc)) |
2024 | continue; | 2024 | continue; |
2025 | ++tcon->tc_count; | 2025 | ++tcon->tc_count; |
@@ -2031,10 +2031,10 @@ cifs_find_tcon(struct cifsSesInfo *ses, const char *unc) | |||
2031 | } | 2031 | } |
2032 | 2032 | ||
2033 | static void | 2033 | static void |
2034 | cifs_put_tcon(struct cifsTconInfo *tcon) | 2034 | cifs_put_tcon(struct cifs_tcon *tcon) |
2035 | { | 2035 | { |
2036 | int xid; | 2036 | int xid; |
2037 | struct cifsSesInfo *ses = tcon->ses; | 2037 | struct cifs_ses *ses = tcon->ses; |
2038 | 2038 | ||
2039 | cFYI(1, "%s: tc_count=%d\n", __func__, tcon->tc_count); | 2039 | cFYI(1, "%s: tc_count=%d\n", __func__, tcon->tc_count); |
2040 | spin_lock(&cifs_tcp_ses_lock); | 2040 | spin_lock(&cifs_tcp_ses_lock); |
@@ -2055,11 +2055,11 @@ cifs_put_tcon(struct cifsTconInfo *tcon) | |||
2055 | cifs_put_smb_ses(ses); | 2055 | cifs_put_smb_ses(ses); |
2056 | } | 2056 | } |
2057 | 2057 | ||
2058 | static struct cifsTconInfo * | 2058 | static struct cifs_tcon * |
2059 | cifs_get_tcon(struct cifsSesInfo *ses, struct smb_vol *volume_info) | 2059 | cifs_get_tcon(struct cifs_ses *ses, struct smb_vol *volume_info) |
2060 | { | 2060 | { |
2061 | int rc, xid; | 2061 | int rc, xid; |
2062 | struct cifsTconInfo *tcon; | 2062 | struct cifs_tcon *tcon; |
2063 | 2063 | ||
2064 | tcon = cifs_find_tcon(ses, volume_info->UNC); | 2064 | tcon = cifs_find_tcon(ses, volume_info->UNC); |
2065 | if (tcon) { | 2065 | if (tcon) { |
@@ -2197,8 +2197,8 @@ cifs_match_super(struct super_block *sb, void *data) | |||
2197 | struct smb_vol *volume_info; | 2197 | struct smb_vol *volume_info; |
2198 | struct cifs_sb_info *cifs_sb; | 2198 | struct cifs_sb_info *cifs_sb; |
2199 | struct TCP_Server_Info *tcp_srv; | 2199 | struct TCP_Server_Info *tcp_srv; |
2200 | struct cifsSesInfo *ses; | 2200 | struct cifs_ses *ses; |
2201 | struct cifsTconInfo *tcon; | 2201 | struct cifs_tcon *tcon; |
2202 | struct tcon_link *tlink; | 2202 | struct tcon_link *tlink; |
2203 | struct sockaddr_storage addr; | 2203 | struct sockaddr_storage addr; |
2204 | int rc = 0; | 2204 | int rc = 0; |
@@ -2243,7 +2243,7 @@ out: | |||
2243 | } | 2243 | } |
2244 | 2244 | ||
2245 | int | 2245 | int |
2246 | get_dfs_path(int xid, struct cifsSesInfo *pSesInfo, const char *old_path, | 2246 | get_dfs_path(int xid, struct cifs_ses *pSesInfo, const char *old_path, |
2247 | const struct nls_table *nls_codepage, unsigned int *pnum_referrals, | 2247 | const struct nls_table *nls_codepage, unsigned int *pnum_referrals, |
2248 | struct dfs_info3_param **preferrals, int remap) | 2248 | struct dfs_info3_param **preferrals, int remap) |
2249 | { | 2249 | { |
@@ -2542,7 +2542,7 @@ ip_connect(struct TCP_Server_Info *server) | |||
2542 | return generic_ip_connect(server); | 2542 | return generic_ip_connect(server); |
2543 | } | 2543 | } |
2544 | 2544 | ||
2545 | void reset_cifs_unix_caps(int xid, struct cifsTconInfo *tcon, | 2545 | void reset_cifs_unix_caps(int xid, struct cifs_tcon *tcon, |
2546 | struct super_block *sb, struct smb_vol *vol_info) | 2546 | struct super_block *sb, struct smb_vol *vol_info) |
2547 | { | 2547 | { |
2548 | /* if we are reconnecting then should we check to see if | 2548 | /* if we are reconnecting then should we check to see if |
@@ -2771,7 +2771,7 @@ void cifs_setup_cifs_sb(struct smb_vol *pvolume_info, | |||
2771 | #define CIFS_DEFAULT_WSIZE (1024 * 1024) | 2771 | #define CIFS_DEFAULT_WSIZE (1024 * 1024) |
2772 | 2772 | ||
2773 | static unsigned int | 2773 | static unsigned int |
2774 | cifs_negotiate_wsize(struct cifsTconInfo *tcon, struct smb_vol *pvolume_info) | 2774 | cifs_negotiate_wsize(struct cifs_tcon *tcon, struct smb_vol *pvolume_info) |
2775 | { | 2775 | { |
2776 | __u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability); | 2776 | __u64 unix_cap = le64_to_cpu(tcon->fsUnixInfo.Capability); |
2777 | struct TCP_Server_Info *server = tcon->ses->server; | 2777 | struct TCP_Server_Info *server = tcon->ses->server; |
@@ -2793,7 +2793,7 @@ cifs_negotiate_wsize(struct cifsTconInfo *tcon, struct smb_vol *pvolume_info) | |||
2793 | } | 2793 | } |
2794 | 2794 | ||
2795 | static int | 2795 | static int |
2796 | is_path_accessible(int xid, struct cifsTconInfo *tcon, | 2796 | is_path_accessible(int xid, struct cifs_tcon *tcon, |
2797 | struct cifs_sb_info *cifs_sb, const char *full_path) | 2797 | struct cifs_sb_info *cifs_sb, const char *full_path) |
2798 | { | 2798 | { |
2799 | int rc; | 2799 | int rc; |
@@ -2868,7 +2868,7 @@ build_unc_path_to_root(const struct smb_vol *volume_info, | |||
2868 | * determine whether there were referrals. | 2868 | * determine whether there were referrals. |
2869 | */ | 2869 | */ |
2870 | static int | 2870 | static int |
2871 | expand_dfs_referral(int xid, struct cifsSesInfo *pSesInfo, | 2871 | expand_dfs_referral(int xid, struct cifs_ses *pSesInfo, |
2872 | struct smb_vol *volume_info, struct cifs_sb_info *cifs_sb, | 2872 | struct smb_vol *volume_info, struct cifs_sb_info *cifs_sb, |
2873 | int check_prefix) | 2873 | int check_prefix) |
2874 | { | 2874 | { |
@@ -2973,8 +2973,8 @@ cifs_mount(struct super_block *sb, struct cifs_sb_info *cifs_sb, | |||
2973 | { | 2973 | { |
2974 | int rc = 0; | 2974 | int rc = 0; |
2975 | int xid; | 2975 | int xid; |
2976 | struct cifsSesInfo *pSesInfo; | 2976 | struct cifs_ses *pSesInfo; |
2977 | struct cifsTconInfo *tcon; | 2977 | struct cifs_tcon *tcon; |
2978 | struct TCP_Server_Info *srvTcp; | 2978 | struct TCP_Server_Info *srvTcp; |
2979 | char *full_path; | 2979 | char *full_path; |
2980 | struct tcon_link *tlink; | 2980 | struct tcon_link *tlink; |
@@ -3172,8 +3172,8 @@ out: | |||
3172 | } | 3172 | } |
3173 | 3173 | ||
3174 | int | 3174 | int |
3175 | CIFSTCon(unsigned int xid, struct cifsSesInfo *ses, | 3175 | CIFSTCon(unsigned int xid, struct cifs_ses *ses, |
3176 | const char *tree, struct cifsTconInfo *tcon, | 3176 | const char *tree, struct cifs_tcon *tcon, |
3177 | const struct nls_table *nls_codepage) | 3177 | const struct nls_table *nls_codepage) |
3178 | { | 3178 | { |
3179 | struct smb_hdr *smb_buffer; | 3179 | struct smb_hdr *smb_buffer; |
@@ -3205,7 +3205,7 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses, | |||
3205 | pSMB->AndXCommand = 0xFF; | 3205 | pSMB->AndXCommand = 0xFF; |
3206 | pSMB->Flags = cpu_to_le16(TCON_EXTENDED_SECINFO); | 3206 | pSMB->Flags = cpu_to_le16(TCON_EXTENDED_SECINFO); |
3207 | bcc_ptr = &pSMB->Password[0]; | 3207 | bcc_ptr = &pSMB->Password[0]; |
3208 | if ((ses->server->secMode) & SECMODE_USER) { | 3208 | if ((ses->server->sec_mode) & SECMODE_USER) { |
3209 | pSMB->PasswordLength = cpu_to_le16(1); /* minimum */ | 3209 | pSMB->PasswordLength = cpu_to_le16(1); /* minimum */ |
3210 | *bcc_ptr = 0; /* password is null byte */ | 3210 | *bcc_ptr = 0; /* password is null byte */ |
3211 | bcc_ptr++; /* skip password */ | 3211 | bcc_ptr++; /* skip password */ |
@@ -3222,7 +3222,7 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses, | |||
3222 | if ((global_secflags & CIFSSEC_MAY_LANMAN) && | 3222 | if ((global_secflags & CIFSSEC_MAY_LANMAN) && |
3223 | (ses->server->secType == LANMAN)) | 3223 | (ses->server->secType == LANMAN)) |
3224 | calc_lanman_hash(tcon->password, ses->server->cryptkey, | 3224 | calc_lanman_hash(tcon->password, ses->server->cryptkey, |
3225 | ses->server->secMode & | 3225 | ses->server->sec_mode & |
3226 | SECMODE_PW_ENCRYPT ? true : false, | 3226 | SECMODE_PW_ENCRYPT ? true : false, |
3227 | bcc_ptr); | 3227 | bcc_ptr); |
3228 | else | 3228 | else |
@@ -3238,7 +3238,7 @@ CIFSTCon(unsigned int xid, struct cifsSesInfo *ses, | |||
3238 | } | 3238 | } |
3239 | } | 3239 | } |
3240 | 3240 | ||
3241 | if (ses->server->secMode & | 3241 | if (ses->server->sec_mode & |
3242 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) | 3242 | (SECMODE_SIGN_REQUIRED | SECMODE_SIGN_ENABLED)) |
3243 | smb_buffer->Flags2 |= SMBFLG2_SECURITY_SIGNATURE; | 3243 | smb_buffer->Flags2 |= SMBFLG2_SECURITY_SIGNATURE; |
3244 | 3244 | ||
@@ -3353,7 +3353,7 @@ cifs_umount(struct super_block *sb, struct cifs_sb_info *cifs_sb) | |||
3353 | return 0; | 3353 | return 0; |
3354 | } | 3354 | } |
3355 | 3355 | ||
3356 | int cifs_negotiate_protocol(unsigned int xid, struct cifsSesInfo *ses) | 3356 | int cifs_negotiate_protocol(unsigned int xid, struct cifs_ses *ses) |
3357 | { | 3357 | { |
3358 | int rc = 0; | 3358 | int rc = 0; |
3359 | struct TCP_Server_Info *server = ses->server; | 3359 | struct TCP_Server_Info *server = ses->server; |
@@ -3383,7 +3383,7 @@ int cifs_negotiate_protocol(unsigned int xid, struct cifsSesInfo *ses) | |||
3383 | } | 3383 | } |
3384 | 3384 | ||
3385 | 3385 | ||
3386 | int cifs_setup_session(unsigned int xid, struct cifsSesInfo *ses, | 3386 | int cifs_setup_session(unsigned int xid, struct cifs_ses *ses, |
3387 | struct nls_table *nls_info) | 3387 | struct nls_table *nls_info) |
3388 | { | 3388 | { |
3389 | int rc = 0; | 3389 | int rc = 0; |
@@ -3395,7 +3395,7 @@ int cifs_setup_session(unsigned int xid, struct cifsSesInfo *ses, | |||
3395 | ses->capabilities &= (~CAP_UNIX); | 3395 | ses->capabilities &= (~CAP_UNIX); |
3396 | 3396 | ||
3397 | cFYI(1, "Security Mode: 0x%x Capabilities: 0x%x TimeAdjust: %d", | 3397 | cFYI(1, "Security Mode: 0x%x Capabilities: 0x%x TimeAdjust: %d", |
3398 | server->secMode, server->capabilities, server->timeAdj); | 3398 | server->sec_mode, server->capabilities, server->timeAdj); |
3399 | 3399 | ||
3400 | rc = CIFS_SessSetup(xid, ses, nls_info); | 3400 | rc = CIFS_SessSetup(xid, ses, nls_info); |
3401 | if (rc) { | 3401 | if (rc) { |
@@ -3427,12 +3427,12 @@ int cifs_setup_session(unsigned int xid, struct cifsSesInfo *ses, | |||
3427 | return rc; | 3427 | return rc; |
3428 | } | 3428 | } |
3429 | 3429 | ||
3430 | static struct cifsTconInfo * | 3430 | static struct cifs_tcon * |
3431 | cifs_construct_tcon(struct cifs_sb_info *cifs_sb, uid_t fsuid) | 3431 | cifs_construct_tcon(struct cifs_sb_info *cifs_sb, uid_t fsuid) |
3432 | { | 3432 | { |
3433 | struct cifsTconInfo *master_tcon = cifs_sb_master_tcon(cifs_sb); | 3433 | struct cifs_tcon *master_tcon = cifs_sb_master_tcon(cifs_sb); |
3434 | struct cifsSesInfo *ses; | 3434 | struct cifs_ses *ses; |
3435 | struct cifsTconInfo *tcon = NULL; | 3435 | struct cifs_tcon *tcon = NULL; |
3436 | struct smb_vol *vol_info; | 3436 | struct smb_vol *vol_info; |
3437 | char username[28]; /* big enough for "krb50x" + hex of ULONG_MAX 6+16 */ | 3437 | char username[28]; /* big enough for "krb50x" + hex of ULONG_MAX 6+16 */ |
3438 | /* We used to have this as MAX_USERNAME which is */ | 3438 | /* We used to have this as MAX_USERNAME which is */ |
@@ -3465,7 +3465,7 @@ cifs_construct_tcon(struct cifs_sb_info *cifs_sb, uid_t fsuid) | |||
3465 | 3465 | ||
3466 | ses = cifs_get_smb_ses(master_tcon->ses->server, vol_info); | 3466 | ses = cifs_get_smb_ses(master_tcon->ses->server, vol_info); |
3467 | if (IS_ERR(ses)) { | 3467 | if (IS_ERR(ses)) { |
3468 | tcon = (struct cifsTconInfo *)ses; | 3468 | tcon = (struct cifs_tcon *)ses; |
3469 | cifs_put_tcp_session(master_tcon->ses->server); | 3469 | cifs_put_tcp_session(master_tcon->ses->server); |
3470 | goto out; | 3470 | goto out; |
3471 | } | 3471 | } |
@@ -3490,7 +3490,7 @@ cifs_sb_master_tlink(struct cifs_sb_info *cifs_sb) | |||
3490 | return cifs_sb->master_tlink; | 3490 | return cifs_sb->master_tlink; |
3491 | } | 3491 | } |
3492 | 3492 | ||
3493 | struct cifsTconInfo * | 3493 | struct cifs_tcon * |
3494 | cifs_sb_master_tcon(struct cifs_sb_info *cifs_sb) | 3494 | cifs_sb_master_tcon(struct cifs_sb_info *cifs_sb) |
3495 | { | 3495 | { |
3496 | return tlink_tcon(cifs_sb_master_tlink(cifs_sb)); | 3496 | return tlink_tcon(cifs_sb_master_tlink(cifs_sb)); |