kmem_cache statistics are available through SLAB anyway
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
int completion_status;
};
-static atomic_t visorchipset_cache_buffers_in_use = ATOMIC_INIT(0);
-
struct parahotplug_request {
struct list_head list;
int id;
if (!p)
return NULL;
- atomic_inc(&visorchipset_cache_buffers_in_use);
return p;
}
if (!p)
return;
- atomic_dec(&visorchipset_cache_buffers_in_use);
kmem_cache_free(pool, p);
}