git.droids-corp.org
/
dpdk.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ce1f911
)
mem: remove hugepage file on unmap
author
Intel
<intel.com>
Fri, 8 Nov 2013 02:00:00 +0000
(
03:00
+0100)
committer
Thomas Monjalon
<thomas.monjalon@6wind.com>
Sat, 23 Nov 2013 22:48:41 +0000
(23:48 +0100)
Signed-off-by: Intel
lib/librte_eal/linuxapp/eal/eal_memory.c
patch
|
blob
|
history
diff --git
a/lib/librte_eal/linuxapp/eal/eal_memory.c
b/lib/librte_eal/linuxapp/eal/eal_memory.c
index
96de636
..
97c6705
100644
(file)
--- a/
lib/librte_eal/linuxapp/eal/eal_memory.c
+++ b/
lib/librte_eal/linuxapp/eal/eal_memory.c
@@
-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