diff options
author | Paulo Alcantara <palcantara@suse.de> | 2018-11-14 20:38:51 +0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-12-24 08:49:00 +0300 |
commit | e7b602f43719fc6173ae86d2de8f6f07c6858ddd (patch) | |
tree | eb6328e7964f4f1e9c517e45c7fc67706695ae64 /fs/cifs/misc.c | |
parent | 5fc7fcd054adcf0f264446cbf778d33e30a45455 (diff) | |
download | linux-e7b602f43719fc6173ae86d2de8f6f07c6858ddd.tar.xz |
cifs: Save TTL value when parsing DFS referrals
This will be needed by DFS cache.
Signed-off-by: Paulo Alcantara <palcantara@suse.de>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/misc.c')
-rw-r--r-- | fs/cifs/misc.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/fs/cifs/misc.c b/fs/cifs/misc.c index f7c0c6fde552..5e315e4009e2 100644 --- a/fs/cifs/misc.c +++ b/fs/cifs/misc.c @@ -740,6 +740,8 @@ parse_dfs_referrals(struct get_dfs_referral_rsp *rsp, u32 rsp_size, goto parse_DFS_referrals_exit; } + node->ttl = le32_to_cpu(ref->TimeToLive); + ref++; } |