forked from Minki/linux
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
This commit is contained in:
parent
19517e5374
commit
b3c958c20a
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user