diff options
author | Paulo Alcantara <palcantara@suse.de> | 2018-11-14 12:38:51 -0500 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2018-12-24 00:49:00 -0500 |
commit | e7b602f43719fc6173ae86d2de8f6f07c6858ddd (patch) | |
tree | eb6328e7964f4f1e9c517e45c7fc67706695ae64 | |
parent | 5fc7fcd054adcf0f264446cbf778d33e30a45455 (diff) |
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>
-rw-r--r-- | fs/cifs/cifsglob.h | 1 | ||||
-rw-r--r-- | fs/cifs/misc.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/cifsglob.h b/fs/cifs/cifsglob.h index 7b3b9313dcde..3b1aa12708a0 100644 --- a/fs/cifs/cifsglob.h +++ b/fs/cifs/cifsglob.h | |||
@@ -1508,6 +1508,7 @@ struct dfs_info3_param { | |||
1508 | int ref_flag; | 1508 | int ref_flag; |
1509 | char *path_name; | 1509 | char *path_name; |
1510 | char *node_name; | 1510 | char *node_name; |
1511 | int ttl; | ||
1511 | }; | 1512 | }; |
1512 | 1513 | ||
1513 | /* | 1514 | /* |
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, | |||
740 | goto parse_DFS_referrals_exit; | 740 | goto parse_DFS_referrals_exit; |
741 | } | 741 | } |
742 | 742 | ||
743 | node->ttl = le32_to_cpu(ref->TimeToLive); | ||
744 | |||
743 | ref++; | 745 | ref++; |
744 | } | 746 | } |
745 | 747 | ||