Searched refs:refcount (Results 1 – 9 of 9) sorted by relevance
/mm/ |
D | zpool.c | 44 atomic_set(&driver->refcount, 0); in zpool_register_driver() 62 int ret = 0, refcount; in zpool_unregister_driver() local 65 refcount = atomic_read(&driver->refcount); in zpool_unregister_driver() 66 WARN_ON(refcount < 0); in zpool_unregister_driver() 67 if (refcount > 0) in zpool_unregister_driver() 88 atomic_inc(&driver->refcount); in zpool_get_driver() 100 atomic_dec(&driver->refcount); in zpool_put_driver()
|
D | z3fold.c | 118 struct kref refcount; member 406 kref_init(&zhdr->refcount); in init_z3fold_page() 529 refcount); in release_z3fold_page() 536 refcount); in release_z3fold_page_locked() 544 refcount); in release_z3fold_page_locked_list() 742 if (kref_put(&new_zhdr->refcount, release_z3fold_page_locked)) in compact_single_buddy() 820 if (kref_put(&zhdr->refcount, release_z3fold_page_locked)) { in do_compact_page() 833 if (kref_put(&zhdr->refcount, release_z3fold_page_locked)) in do_compact_page() 912 kref_get(&zhdr->refcount); in __z3fold_alloc() 949 kref_get(&zhdr->refcount); in __z3fold_alloc() [all …]
|
D | slab_common.c | 188 if (s->refcount < 0) in slab_unmergeable() 269 s->refcount = 1; in create_cache() 508 s->refcount--; in kmem_cache_destroy() 509 if (s->refcount) in kmem_cache_destroy() 677 s->refcount = -1; /* Exempt from merging for now */ in create_boot_cache() 692 s->refcount = 1; in create_kmalloc_cache() 895 kmalloc_caches[type][idx]->refcount = -1; in new_kmalloc_cache()
|
D | zswap.c | 174 int refcount; member 281 entry->refcount = 1; in zswap_entry_cache_alloc() 366 entry->refcount++; in zswap_entry_get() 375 int refcount = --entry->refcount; in zswap_entry_put() local 377 BUG_ON(refcount < 0); in zswap_entry_put() 378 if (refcount == 0) { in zswap_entry_put()
|
D | rmap.c | 95 atomic_set(&anon_vma->refcount, 1); in anon_vma_alloc() 111 VM_BUG_ON(atomic_read(&anon_vma->refcount)); in anon_vma_free() 457 atomic_set(&anon_vma->refcount, 0); in anon_vma_ctor() 507 if (!atomic_inc_not_zero(&anon_vma->refcount)) { in page_get_anon_vma() 580 if (!atomic_inc_not_zero(&anon_vma->refcount)) { in page_lock_anon_vma_read() 595 if (atomic_dec_and_test(&anon_vma->refcount)) { in page_lock_anon_vma_read() 2341 if (root != anon_vma && atomic_dec_and_test(&root->refcount)) in __put_anon_vma()
|
D | slab.h | 28 int refcount; /* Use counter */ member
|
D | slub.c | 4890 s->refcount++; in __kmem_cache_alias() 4900 s->refcount--; in __kmem_cache_alias() 5458 return sysfs_emit(buf, "%d\n", s->refcount < 0 ? 0 : s->refcount - 1); in aliases_show()
|
D | vmscan.c | 1127 int refcount; in __remove_mapping() local 1159 refcount = 1 + compound_nr(page); in __remove_mapping() 1160 if (!page_ref_freeze(page, refcount)) in __remove_mapping() 1164 page_ref_unfreeze(page, refcount); in __remove_mapping()
|
D | slab.c | 1807 cachep->refcount++; in __kmem_cache_alias()
|