Home
last modified time | relevance | path

Searched refs:refcount (Results 1 – 9 of 9) sorted by relevance

/mm/
Dzpool.c43 atomic_set(&driver->refcount, 0); in zpool_register_driver()
61 int ret = 0, refcount; in zpool_unregister_driver() local
64 refcount = atomic_read(&driver->refcount); in zpool_unregister_driver()
65 WARN_ON(refcount < 0); in zpool_unregister_driver()
66 if (refcount > 0) in zpool_unregister_driver()
87 atomic_inc(&driver->refcount); in zpool_get_driver()
99 atomic_dec(&driver->refcount); in zpool_put_driver()
Dz3fold.c118 struct kref refcount; member
417 kref_init(&zhdr->refcount); in init_z3fold_page()
548 refcount); in release_z3fold_page()
555 refcount); in release_z3fold_page_locked()
563 refcount); in release_z3fold_page_locked_list()
759 if (kref_put(&new_zhdr->refcount, release_z3fold_page_locked)) in compact_single_buddy()
837 if (kref_put(&zhdr->refcount, release_z3fold_page_locked)) { in do_compact_page()
850 if (kref_put(&zhdr->refcount, release_z3fold_page_locked)) in do_compact_page()
928 kref_get(&zhdr->refcount); in __z3fold_alloc()
965 kref_get(&zhdr->refcount); in __z3fold_alloc()
[all …]
Dslab_common.c180 if (s->refcount < 0) in slab_unmergeable()
261 s->refcount = 1; in create_cache()
508 s->refcount--; in kmem_cache_destroy()
509 if (s->refcount) in kmem_cache_destroy()
583 s->refcount = -1; /* Exempt from merging for now */ in create_boot_cache()
598 s->refcount = 1; in create_kmalloc_cache()
Dzswap.c164 int refcount; member
271 entry->refcount = 1; in zswap_entry_cache_alloc()
356 entry->refcount++; in zswap_entry_get()
365 int refcount = --entry->refcount; in zswap_entry_put() local
367 BUG_ON(refcount < 0); in zswap_entry_put()
368 if (refcount == 0) { in zswap_entry_put()
Drmap.c93 atomic_set(&anon_vma->refcount, 1); in anon_vma_alloc()
109 VM_BUG_ON(atomic_read(&anon_vma->refcount)); in anon_vma_free()
447 atomic_set(&anon_vma->refcount, 0); in anon_vma_ctor()
497 if (!atomic_inc_not_zero(&anon_vma->refcount)) { in page_get_anon_vma()
570 if (!atomic_inc_not_zero(&anon_vma->refcount)) { in page_lock_anon_vma_read()
585 if (atomic_dec_and_test(&anon_vma->refcount)) { in page_lock_anon_vma_read()
1908 if (root != anon_vma && atomic_dec_and_test(&root->refcount)) in __put_anon_vma()
Dvmscan.c891 int refcount; in __remove_mapping() local
923 refcount = 1 + compound_nr(page); in __remove_mapping()
924 if (!page_ref_freeze(page, refcount)) in __remove_mapping()
928 page_ref_unfreeze(page, refcount); in __remove_mapping()
Dslab.h28 int refcount; /* Use counter */ member
Dslub.c4490 s->refcount++; in __kmem_cache_alias()
4500 s->refcount--; in __kmem_cache_alias()
5113 return sprintf(buf, "%d\n", s->refcount < 0 ? 0 : s->refcount - 1); in aliases_show()
Dslab.c1806 cachep->refcount++; in __kmem_cache_alias()