cifs: is_network_name_deleted should return a bool
authorShyam Prasad N <nspmangalore@gmail.com>
Fri, 14 Jul 2023 08:56:34 +0000 (08:56 +0000)
committerSteve French <stfrench@microsoft.com>
Fri, 14 Jul 2023 16:24:14 +0000 (11:24 -0500)
commitc071b34f62ddbf8435491ebb0e21eba9dc29f901
tree81e24b9dc33dd34779fbf94713bb75b9dfa1fe41
parentbf99f6be2d20146942bce6f9e90a0ceef12cbc1e
cifs: is_network_name_deleted should return a bool

Currently, is_network_name_deleted and it's implementations
do not return anything if the network name did get deleted.
So the function doesn't fully achieve what it advertizes.

Changed the function to return a bool instead. It will now
return true if the error returned is STATUS_NETWORK_NAME_DELETED
and the share (tree id) was found to be connected. It returns
false otherwise.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Acked-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsglob.h
fs/smb/client/connect.c
fs/smb/client/smb2ops.c