Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

NeilBrown and committed by
J. Bruce Fields
d8d29138 db1bb44c

+1 -3
-2
include/linux/sunrpc/cache.h
··· 78 78 struct hlist_head * hash_table; 79 79 rwlock_t hash_lock; 80 80 81 - atomic_t inuse; /* active user-space update or lookup */ 82 - 83 81 char *name; 84 82 void (*cache_put)(struct kref *); 85 83
+1 -1
net/sunrpc/cache.c
··· 362 362 cache_purge(cd); 363 363 spin_lock(&cache_list_lock); 364 364 write_lock(&cd->hash_lock); 365 - if (cd->entries || atomic_read(&cd->inuse)) { 365 + if (cd->entries) { 366 366 write_unlock(&cd->hash_lock); 367 367 spin_unlock(&cache_list_lock); 368 368 goto out;