PA: Move in nactive counter.

This commit is contained in:
David Goldblatt
2020-03-11 17:40:17 -07:00
committed by David Goldblatt
parent c075fd0bcb
commit 527dd4cdb8
5 changed files with 38 additions and 36 deletions

View File

@@ -67,13 +67,6 @@ struct arena_s {
*/
atomic_u_t dss_prec;
/*
* Number of pages in active extents.
*
* Synchronization: atomic.
*/
atomic_zu_t nactive;
/*
* Extant large allocations.
*

View File

@@ -73,6 +73,13 @@ struct pa_shard_stats_s {
*/
typedef struct pa_shard_s pa_shard_t;
struct pa_shard_s {
/*
* Number of pages in active extents.
*
* Synchronization: atomic.
*/
atomic_zu_t nactive;
/*
* Collections of extents that were previously allocated. These are
* used when allocating extents, in an attempt to re-use address space.