diff options
author | Jeff Layton <jlayton@redhat.com> | 2012-11-26 11:09:55 -0500 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2012-12-05 14:27:30 -0500 |
commit | b979aaa1777259330435c47f900833dabe9189e8 (patch) | |
tree | 45db63a100144fd74e5997ab329f855bed520ed1 /fs/cifs/cifsglob.h | |
parent | ccb5c001b3035ca470fe21424e439530ba838510 (diff) |
cifs: get rid of smb_vol->UNCip and smb_vol->port
Passing this around as a string is contorted and painful. Instead, just
convert these to a sockaddr as soon as possible, since that's how we're
going to work with it later anyway.
Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'fs/cifs/cifsglob.h')
-rw-r--r-- | fs/cifs/cifsglob.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index ac66409fb9d3..052d85b333f3 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -394,7 +394,6 @@ struct smb_vol { | |||
394 | char *password; | 394 | char *password; |
395 | char *domainname; | 395 | char *domainname; |
396 | char *UNC; | 396 | char *UNC; |
397 | char *UNCip; | ||
398 | char *iocharset; /* local code page for mapping to and from Unicode */ | 397 | char *iocharset; /* local code page for mapping to and from Unicode */ |
399 | char source_rfc1001_name[RFC1001_NAME_LEN_WITH_NULL]; /* clnt nb name */ | 398 | char source_rfc1001_name[RFC1001_NAME_LEN_WITH_NULL]; /* clnt nb name */ |
400 | char target_rfc1001_name[RFC1001_NAME_LEN_WITH_NULL]; /* srvr nb name */ | 399 | char target_rfc1001_name[RFC1001_NAME_LEN_WITH_NULL]; /* srvr nb name */ |
@@ -442,11 +441,11 @@ struct smb_vol { | |||
442 | unsigned int rsize; | 441 | unsigned int rsize; |
443 | unsigned int wsize; | 442 | unsigned int wsize; |
444 | bool sockopt_tcp_nodelay:1; | 443 | bool sockopt_tcp_nodelay:1; |
445 | unsigned short int port; | ||
446 | unsigned long actimeo; /* attribute cache timeout (jiffies) */ | 444 | unsigned long actimeo; /* attribute cache timeout (jiffies) */ |
447 | struct smb_version_operations *ops; | 445 | struct smb_version_operations *ops; |
448 | struct smb_version_values *vals; | 446 | struct smb_version_values *vals; |
449 | char *prepath; | 447 | char *prepath; |
448 | struct sockaddr_storage dstaddr; /* destination address */ | ||
450 | struct sockaddr_storage srcaddr; /* allow binding to a local IP */ | 449 | struct sockaddr_storage srcaddr; /* allow binding to a local IP */ |
451 | struct nls_table *local_nls; | 450 | struct nls_table *local_nls; |
452 | }; | 451 | }; |