summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorNeilBrown <neilb@suse.com>2016-06-02 16:31:03 +1000
committerJ. Bruce Fields <bfields@redhat.com>2016-07-13 15:32:47 -0400
commitd8d29138b17c9965484427b34cf8046601aef8c4 (patch)
tree7ec4636394d4e4775626096b790849978766f84a /net
parentdb1bb44c4c7e8d49ed674dc59e5222d99c698088 (diff)
downloadlinux-stable-d8d29138b17c9965484427b34cf8046601aef8c4.tar.gz
linux-stable-d8d29138b17c9965484427b34cf8046601aef8c4.tar.bz2
linux-stable-d8d29138b17c9965484427b34cf8046601aef8c4.zip
sunrpc: remove 'inuse' flag from struct cache_detail.
This field is not currently in use. Signed-off-by: NeilBrown <neilb@suse.com> Signed-off-by: J. Bruce Fields <bfields@redhat.com>
Diffstat (limited to 'net')
-rw-r--r--net/sunrpc/cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/sunrpc/cache.c b/net/sunrpc/cache.c
index 553bf95f7003..4d8e11f94a35 100644
--- a/net/sunrpc/cache.c
+++ b/net/sunrpc/cache.c
@@ -362,7 +362,7 @@ void sunrpc_destroy_cache_detail(struct cache_detail *cd)
cache_purge(cd);
spin_lock(&cache_list_lock);
write_lock(&cd->hash_lock);
- if (cd->entries || atomic_read(&cd->inuse)) {
+ if (cd->entries) {
write_unlock(&cd->hash_lock);
spin_unlock(&cache_list_lock);
goto out;