]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3bb26cdc23f57bfb1042841e8e9d65ebd0d2e32a
tree4b0a8c91403b28b174610b02a8346da39204946c
parent7113115495020b55cb53eb99ccba6700a9ffea6c
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