cifs: move allocation of new TCP_Server_Info into separate function
authorJeff Layton <jlayton@redhat.com>
Mon, 1 Dec 2008 23:41:46 +0000 (18:41 -0500)
committerSteve French <sfrench@us.ibm.com>
Fri, 26 Dec 2008 02:29:10 +0000 (02:29 +0000)
commit63c038c29774476c5dae759e348c269342b4dbef
tree4b0a8c91403b28b174610b02a8346da39204946c
parent8ecaf67a8ea58c8f131ff045475c74e9538d6b7a
cifs: move allocation of new TCP_Server_Info into separate function

Clean up cifs_mount a bit by moving the code that creates new TCP
sessions into a separate function. Have that function search for an
existing socket and then create a new one if one isn't found.

Also reorganize the initializion of TCP_Server_Info a bit to prepare
for cleanup of the socket connection code.

Signed-off-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Steve French <sfrench@us.ibm.com>
fs/cifs/connect.c