HPA: Purge across retained extents.

This lets us cut down on the number of expensive system calls we perform.
This commit is contained in:
David Goldblatt
2021-06-03 13:29:02 -07:00
committed by David Goldblatt
parent 347523517b
commit 41fd56605e
4 changed files with 160 additions and 25 deletions

View File

@@ -18,12 +18,14 @@ edata_init_test(edata_t *edata) {
static void
test_psset_fake_purge(hpdata_t *ps) {
hpdata_purge_state_t purge_state;
hpdata_alloc_allowed_set(ps, false);
hpdata_purge_begin(ps, &purge_state);
void *addr;
size_t size;
while (hpdata_purge_next(ps, &purge_state, &addr, &size)) {
}
hpdata_purge_end(ps, &purge_state);
hpdata_alloc_allowed_set(ps, true);
}
static void