diff options
author | Shyam Prasad N | 2021-12-02 07:14:42 +0000 |
---|---|---|
committer | Steve French | 2021-12-03 12:29:59 -0600 |
commit | 5bf91ef03d987eb617dffccbb0bf38b2451bf37f (patch) | |
tree | 2c73a9fc9ea7198b2e43ccf8d8f8749f854c52a8 /fs/cifs/fscache.c | |
parent | 65de262a209da0951eb9bc60b3b7faf3bbffa38a (diff) |
cifs: wait for tcon resource_id before getting fscache super
The logic for initializing tcon->resource_id is done inside
cifs_root_iget. fscache super cookie relies on this for aux
data. So we need to push the fscache initialization to this
later point during mount.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/cifs/fscache.c')
-rw-r--r-- | fs/cifs/fscache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/fscache.c b/fs/cifs/fscache.c index 7e409a38a2d7..f4da693760c1 100644 --- a/fs/cifs/fscache.c +++ b/fs/cifs/fscache.c @@ -92,7 +92,7 @@ void cifs_fscache_get_super_cookie(struct cifs_tcon *tcon) * In the future, as we integrate with newer fscache features, * we may want to instead add a check if cookie has changed */ - if (tcon->fscache == NULL) + if (tcon->fscache) return; sharename = extract_sharename(tcon->treeName); |