hugefileobj: rewrite page allocation/handling

* manage pages by an array
* fix mmap of fd created by memfd_create() populates the map
* refactor pgsize and pgshift handling

Change-Id: Icaf015b10afc35f2b95f93059adf1a1b6b92e14e
refs: #1475
This commit is contained in:
Balazs Gerofi
2020-04-20 19:51:37 +09:00
committed by Masamichi Takagi
parent c3c0b7197f
commit 2e2e973d78
3 changed files with 160 additions and 162 deletions

View File

@@ -33,6 +33,7 @@ struct pager_create_result {
int maxprot;
uint32_t flags;
size_t size;
int pgshift;
char path[PATH_MAX];
};