smb: client: change return value in open_cached_dir_by_dentry() if !cfids
authorHenrique Carvalho <henrique.carvalho@suse.com>
Sat, 23 Nov 2024 01:14:37 +0000 (22:14 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 25 Nov 2024 19:20:24 +0000 (13:20 -0600)
commit07bdf9272a01741b43461d666fb870ee00b02480
tree1612c2cc94a8dd6eecffdc83f1be63df77c1056b
parentceaf1451990e3ea7fb50aebb5a149f57945f6e9f
smb: client: change return value in open_cached_dir_by_dentry() if !cfids

Change return value from -ENOENT to -EOPNOTSUPP to maintain consistency
with the return value of open_cached_dir() for the same case. This
change is safe as the only calling function does not differentiate
between these return values.

Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Reviewed-by: Enzo Matsumiya <ematsumiya@suse.de>
Signed-off-by: Henrique Carvalho <henrique.carvalho@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cached_dir.c