cifs: Refactor out cifs_mount()
authorPaulo Alcantara <palcantara@suse.de>
Wed, 14 Nov 2018 15:03:14 +0000 (13:03 -0200)
committerSteve French <stfrench@microsoft.com>
Mon, 24 Dec 2018 05:00:38 +0000 (23:00 -0600)
commit56c762eb9bee330bb4e6d11c589434f2904d3ab6
tree124273df27d0232e9d4bd9cc5427fa20f5d166b9
parent9a596f5b39593414c0ec80f71b94a226286f084e
cifs: Refactor out cifs_mount()

* Split and refactor the very large function cifs_mount() in multiple
  functions:

- tcp, ses and tcon setup to mount_get_conns()
- tcp, ses and tcon cleanup in mount_put_conns()
- tcon tlink setup to mount_setup_tlink()
- remote path checking to is_path_remote()

* Implement 2 version of cifs_mount() for DFS-enabled builds and
  non-DFS-enabled builds (CONFIG_CIFS_DFS_UPCALL).

In preparation for DFS failover support.

Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsproto.h
fs/cifs/connect.c