[PATCH 7/8] fscache: Use wrapper fscache_set_cache_state() directly when relinquishing
David Howells
dhowells at redhat.com
Sat Apr 9 09:07:02 AEST 2022
From: Yue Hu <huyue2 at coolpad.com>
We already have the wrapper function to set cache state.
Signed-off-by: Yue Hu <huyue2 at coolpad.com>
Signed-off-by: David Howells <dhowells at redhat.com>
Reviewed-by: Jeffle Xu <jefflexu at linux.alibaba.com>
cc: linux-cachefs at redhat.com
Link: https://listman.redhat.com/archives/linux-cachefs/2022-April/006648.html # v1
---
fs/fscache/cache.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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);
More information about the Linux-erofs
mailing list