Skip to content

Commit b3c958c

Browse files
taigerhudhowells
authored andcommitted
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 <huyue2@coolpad.com> Signed-off-by: David Howells <dhowells@redhat.com> Reviewed-by: Jeffle Xu <jefflexu@linux.alibaba.com> cc: linux-cachefs@redhat.com Link: https://listman.redhat.com/archives/linux-cachefs/2022-April/006648.html # v1
1 parent 19517e5 commit b3c958c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/fscache/cache.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ void fscache_relinquish_cache(struct fscache_cache *cache)
214214

215215
cache->ops = NULL;
216216
cache->cache_priv = NULL;
217-
smp_store_release(&cache->state, FSCACHE_CACHE_IS_NOT_PRESENT);
217+
fscache_set_cache_state(cache, FSCACHE_CACHE_IS_NOT_PRESENT);
218218
fscache_put_cache(cache, where);
219219
}
220220
EXPORT_SYMBOL(fscache_relinquish_cache);

0 commit comments

Comments
 (0)