Commit be91cd37 authored by Jes Sorensen's avatar Jes Sorensen Committed by Greg Kroah-Hartman

staging: unisys: Remove unused cache object counter

kmem_cache statistics are available through SLAB anyway
Signed-off-by: default avatarJes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: default avatarBenjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 94217363
...@@ -213,8 +213,6 @@ struct putfile_request { ...@@ -213,8 +213,6 @@ struct putfile_request {
int completion_status; int completion_status;
}; };
static atomic_t visorchipset_cache_buffers_in_use = ATOMIC_INIT(0);
struct parahotplug_request { struct parahotplug_request {
struct list_head list; struct list_head list;
int id; int id;
...@@ -2077,7 +2075,6 @@ visorchipset_cache_alloc(struct kmem_cache *pool, bool ok_to_block, ...@@ -2077,7 +2075,6 @@ visorchipset_cache_alloc(struct kmem_cache *pool, bool ok_to_block,
if (!p) if (!p)
return NULL; return NULL;
atomic_inc(&visorchipset_cache_buffers_in_use);
return p; return p;
} }
...@@ -2089,7 +2086,6 @@ visorchipset_cache_free(struct kmem_cache *pool, void *p, char *fn, int ln) ...@@ -2089,7 +2086,6 @@ visorchipset_cache_free(struct kmem_cache *pool, void *p, char *fn, int ln)
if (!p) if (!p)
return; return;
atomic_dec(&visorchipset_cache_buffers_in_use);
kmem_cache_free(pool, p); kmem_cache_free(pool, p);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment