300,7 → 300,7 |
list_remove(&slab->link); |
list_prepend(&slab->link, &page_cache.full_slabs); |
page_cache.partial_count--; |
DBG("%s insert empty page slab\n"); |
DBG("%s insert empty page slab\n", __FUNCTION__); |
}; |
spinlock_unlock(&page_cache.lock); |
|
396,9 → 396,9 |
(slab->avail >= 4)) |
{ |
slab->state = 1; |
// list_remove(&slab->link); |
// list_prepend(&slab->link, &page_cache.partial_slabs); |
// page_cache.partial_count++; |
list_remove(&slab->link); |
list_prepend(&slab->link, &page_cache.partial_slabs); |
page_cache.partial_count++; |
|
DBG("%s: insert partial page slab\n", __FUNCTION__); |
} |
440,3 → 440,6 |
return z_core.free_count; |
} |
|
|
|
|