cifs: return ENOENT for DFS lookup_cache_entry()
authorEnzo Matsumiya <ematsumiya@suse.de>
Wed, 18 May 2022 14:41:05 +0000 (11:41 -0300)
committerSteve French <stfrench@microsoft.com>
Fri, 20 May 2022 22:44:34 +0000 (17:44 -0500)
commit337b8b0e4343567221ef8d88aac5e418208d4ac1
tree6ba8ffe3a5aafb021ff13985561ce26b4e2f4f64
parent421ef3d56513b2ff02e563623688cb6ab4977c4f
cifs: return ENOENT for DFS lookup_cache_entry()

EEXIST didn't make sense to use when dfs_cache_find() couldn't find a
cache entry nor retrieve a referral target.

It also doesn't make sense cifs_dfs_query_info_nonascii_quirk() to
emulate ENOENT anymore.

Signed-off-by: Enzo Matsumiya <ematsumiya@suse.de>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/connect.c
fs/cifs/dfs_cache.c
fs/cifs/misc.c