Searched refs:refcount (Results 1 – 8 of 8) sorted by relevance
41 atomic_set(&driver->refcount, 0); in zpool_register_driver()59 int ret = 0, refcount; in zpool_unregister_driver() local62 refcount = atomic_read(&driver->refcount); in zpool_unregister_driver()63 WARN_ON(refcount < 0); in zpool_unregister_driver()64 if (refcount > 0) in zpool_unregister_driver()85 atomic_inc(&driver->refcount); in zpool_get_driver()97 atomic_dec(&driver->refcount); in zpool_put_driver()
153 int refcount; member247 entry->refcount = 1; in zswap_entry_cache_alloc()328 entry->refcount++; in zswap_entry_get()337 int refcount = --entry->refcount; in zswap_entry_put() local339 BUG_ON(refcount < 0); in zswap_entry_put()340 if (refcount == 0) { in zswap_entry_put()
247 if (s->refcount < 0) in slab_unmergeable()354 s->refcount = 1; in create_cache()749 s->refcount--; in kmem_cache_destroy()750 if (s->refcount) in kmem_cache_destroy()817 s->refcount = -1; /* Exempt from merging for now */ in create_boot_cache()830 s->refcount = 1; in create_kmalloc_cache()
80 atomic_set(&anon_vma->refcount, 1); in anon_vma_alloc()95 VM_BUG_ON(atomic_read(&anon_vma->refcount)); in anon_vma_free()425 atomic_set(&anon_vma->refcount, 0); in anon_vma_ctor()474 if (!atomic_inc_not_zero(&anon_vma->refcount)) { in page_get_anon_vma()533 if (!atomic_inc_not_zero(&anon_vma->refcount)) { in page_lock_anon_vma_read()548 if (atomic_dec_and_test(&anon_vma->refcount)) { in page_lock_anon_vma_read()1751 if (root != anon_vma && atomic_dec_and_test(&root->refcount)) in __put_anon_vma()
62 int refcount; member70 .refcount = 0,106 mem_hotplug.refcount++; in get_online_mems()117 if (WARN_ON(!mem_hotplug.refcount)) in put_online_mems()118 mem_hotplug.refcount++; /* try to fix things up */ in put_online_mems()120 if (!--mem_hotplug.refcount && unlikely(mem_hotplug.active_writer)) in put_online_mems()134 if (likely(!mem_hotplug.refcount)) in mem_hotplug_begin()
25 int refcount; /* Use counter */ member
4175 s->refcount++; in __kmem_cache_alias()4191 s->refcount--; in __kmem_cache_alias()4898 return sprintf(buf, "%d\n", s->refcount < 0 ? 0 : s->refcount - 1); in aliases_show()5041 if (s->refcount > 1) in trace_store()5159 if (s->refcount > 1) in failslab_store()
1926 cachep->refcount++; in __kmem_cache_alias()