mem: remove hugepage file on unmap
Signed-off-by: Intel
This commit is contained in:
parent
ce1f9117b3
commit
718bf2ae4d
@ -557,6 +557,11 @@ unmap_unneeded_hugepages(struct hugepage *hugepg_tbl,
|
||||
if (pages_found == hpi[size].num_pages[socket]) {
|
||||
munmap(hp->final_va, hp->size);
|
||||
hp->final_va = NULL;
|
||||
if (remove(hp->filepath) == -1) {
|
||||
RTE_LOG(ERR, EAL, "%s(): Removing %s failed: %s\n",
|
||||
__func__, hp->filepath, strerror(errno));
|
||||
return -1;
|
||||
}
|
||||
}
|
||||
/* lock the page and skip */
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user