OSDN Git Service

cifs: remove duplicate code in __refresh_tcon()
authorPaulo Alcantara <pc@cjr.nz>
Tue, 17 Jan 2023 22:00:40 +0000 (19:00 -0300)
committerSteve French <stfrench@microsoft.com>
Wed, 18 Jan 2023 16:45:58 +0000 (10:45 -0600)
commit8064f711c6a4614a848009b5a773e8d7f055a4c5
treedf05bab49bc7fead43d2cb91022cf67ea7d28dab
parent11c8b3f8493cb5253da42fcd178d9b4630063f96
cifs: remove duplicate code in __refresh_tcon()

The logic for creating or updating a cache entry in __refresh_tcon()
could be simply done with cache_refresh_path(), so use it instead.

Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/dfs_cache.c