fscache: Use wrapper fscache_set_cache_state() directly when relinquishing
A message that is not in the archive (sent off-list or not yet received): [email protected]
JeffleXu
Reviewed-byQuoted 12 lines · Yue Hu
We already have the wrapper function to set cache state.
Signed-off-by Yue Hu <[email protected]>--- fs/fscache/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)fs/fscache/cache.c +0
-0
fs/fscache/cache.c void fscache_relinquish_cache(struct fscache_cache *cache) · line 220
Quoted 8 lines
fs/fscache/cache.c +1
-1@@ -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);
Looks good to me.
Reviewed-by Jeffle Xu <[email protected]>
Signature · 2 lines
Thanks, Jeffle