]> git.ipfire.org Git - thirdparty/linux.git/commit
cifs: set a minimum of 2 minutes for refreshing dfs cache
authorPaulo Alcantara <pc@cjr.nz>
Fri, 4 Jun 2021 22:25:32 +0000 (19:25 -0300)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:17 +0000 (21:28 -0500)
commitc950fc7af9a7c20b60d7c1ffe5fd4d982ec8cd6c
tree80a23f61ea944deed111556ae74d2e579aef9e0a
parent42caeba713b12ee0dfc085f6fb2f7cde2a64f91a
cifs: set a minimum of 2 minutes for refreshing dfs cache

We don't want to refresh the dfs cache in very short intervals, so
setting a minimum interval of 2 minutes is OK.

If it needs to be refreshed immediately, one could have the cache
cleared with

$ echo 0 > /proc/fs/cifs/dfscache

and then remounting the dfs share.

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