aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYue Hu <[email protected]>2022-04-01 14:37:15 +0800
committerDavid Howells <[email protected]>2022-04-08 23:54:37 +0100
commitb3c958c20a61fb8514fa16e3edcb421703600ee0 (patch)
tree0c117b4b6eefc0ffd9591ec9f99cc6bd418067df
parent19517e53740ec671c335f05089abe1f0720103c7 (diff)
fscache: Use wrapper fscache_set_cache_state() directly when relinquishing
We already have the wrapper function to set cache state. Signed-off-by: Yue Hu <[email protected]> Signed-off-by: David Howells <[email protected]> Reviewed-by: Jeffle Xu <[email protected]> cc: [email protected] Link: https://listman.redhat.com/archives/linux-cachefs/2022-April/006648.html # v1
-rw-r--r--fs/fscache/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/fscache/cache.c b/fs/fscache/cache.c
index 2749933852a9..d645f8b302a2 100644
--- a/fs/fscache/cache.c
+++ b/fs/fscache/cache.c
@@ -214,7 +214,7 @@ void fscache_relinquish_cache(struct fscache_cache *cache)
cache->ops = 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);
}
EXPORT_SYMBOL(fscache_relinquish_cache);