projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19517e5
)
fscache: Use wrapper fscache_set_cache_state() directly when relinquishing
author
Yue Hu
<huyue2@coolpad.com>
Fri, 1 Apr 2022 06:37:15 +0000
(14:37 +0800)
committer
David Howells
<dhowells@redhat.com>
Fri, 8 Apr 2022 22:54:37 +0000
(23:54 +0100)
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
fs/fscache/cache.c
patch
|
blob
|
history
diff --git
a/fs/fscache/cache.c
b/fs/fscache/cache.c
index
2749933
..
d645f8b
100644
(file)
--- 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->stat
e, FSCACHE_CACHE_IS_NOT_PRESENT);
+
fscache_set_cache_state(cach
e, FSCACHE_CACHE_IS_NOT_PRESENT);
fscache_put_cache(cache, where);
}
EXPORT_SYMBOL(fscache_relinquish_cache);