Searched refs:slab_refcnt (Results 1 – 8 of 8) sorted by relevance
103 ((sp)->slab_refcnt > 0 && (sp)->slab_refcnt < (sp)->slab_chunks)105 ((sp)->slab_refcnt == (sp)->slab_chunks)229 long slab_refcnt; /* outstanding allocations */ member
1531 sp->slab_refcnt = 0; in kmem_slab_create()1604 ASSERT(sp->slab_refcnt == 0); in kmem_slab_destroy()1622 boolean_t new_slab = (sp->slab_refcnt == 0); in kmem_slab_alloc_impl()1636 sp->slab_refcnt++; in kmem_slab_alloc_impl()1821 ASSERT(sp->slab_refcnt >= 1); in kmem_slab_free()1823 if (--sp->slab_refcnt == 0) { in kmem_slab_free()1877 ASSERT(sp->slab_refcnt == (sp->slab_chunks - 1)); in kmem_slab_free()2734 ASSERT(sp->slab_refcnt == 1); in kmem_slab_prefill()2735 ASSERT(sp->slab_head != NULL && sp->slab_chunks > sp->slab_refcnt); in kmem_slab_prefill()2739 nbufs = (sp->slab_chunks - sp->slab_refcnt); in kmem_slab_prefill()[all …]
1434 sp->slab_refcnt = 0; in umem_slab_create()1548 sp->slab_refcnt++; in umem_slab_alloc()1549 ASSERT(sp->slab_refcnt <= sp->slab_chunks); in umem_slab_alloc()1558 ASSERT(sp->slab_refcnt == sp->slab_chunks); in umem_slab_alloc()1634 ASSERT(sp->slab_refcnt == sp->slab_chunks); in umem_slab_free()1648 ASSERT(sp->slab_refcnt >= 1); in umem_slab_free()1649 if (--sp->slab_refcnt == 0) { in umem_slab_free()2888 cp->cache_nullslab.slab_refcnt = -1; in umem_cache_create()
202 long slab_refcnt; /* outstanding allocations */ member
109 *avail += sp->slab_chunks - sp->slab_refcnt; in umastat_slab_avail()
849 *est -= (sp->slab_chunks - sp->slab_refcnt); in umem_estimate_slab()1414 dprintf(("refcnt is %d; chunks is %d\n", sp->slab_refcnt, chunks)); in umem_walk_step()1421 for (i = sp->slab_refcnt; i <= chunks; i++) { in umem_walk_step()
482 ks->ks_bucket[sp->slab_refcnt]++; in kmem_slablist_stat()484 unused = (sp->slab_chunks - sp->slab_refcnt); in kmem_slablist_stat()509 ksu->ksu_refcnt = sp->slab_refcnt; in kmem_slablist_stat()933 *est -= (sp->slab_chunks - sp->slab_refcnt); in kmem_estimate_slab()1466 dprintf(("refcnt is %d; chunks is %d\n", sp->slab_refcnt, chunks)); in kmem_walk_step()1473 for (i = sp->slab_refcnt; i <= chunks; i++) { in kmem_walk_step()
1963 *avail += sp->slab_chunks - sp->slab_refcnt; in kmastat_slab_avail()