]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit33e120a3acdb5066a21b06bee16aef7b58fcdbcc
tree124273df27d0232e9d4bd9cc5427fa20f5d166b9
parentef571d4f44fd36f1468627d3e3bdd8a58b84f743
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