Commit b3c958c2 authored by Yue Hu's avatar Yue Hu Committed by David Howells

fscache: Use wrapper fscache_set_cache_state() directly when relinquishing

We already have the wrapper function to set cache state.
Signed-off-by: default avatarYue Hu <huyue2@coolpad.com>
Signed-off-by: default avatarDavid Howells <dhowells@redhat.com>
Reviewed-by: default avatarJeffle Xu <jefflexu@linux.alibaba.com>
cc: linux-cachefs@redhat.com
Link: https://listman.redhat.com/archives/linux-cachefs/2022-April/006648.html # v1
parent 19517e53
...@@ -214,7 +214,7 @@ void fscache_relinquish_cache(struct fscache_cache *cache) ...@@ -214,7 +214,7 @@ void fscache_relinquish_cache(struct fscache_cache *cache)
cache->ops = NULL; cache->ops = NULL;
cache->cache_priv = NULL; cache->cache_priv = NULL;
smp_store_release(&cache->state, FSCACHE_CACHE_IS_NOT_PRESENT); fscache_set_cache_state(cache, FSCACHE_CACHE_IS_NOT_PRESENT);
fscache_put_cache(cache, where); fscache_put_cache(cache, where);
} }
EXPORT_SYMBOL(fscache_relinquish_cache); EXPORT_SYMBOL(fscache_relinquish_cache);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment