TO RESET: stack changes

Change-Id: I325420701dfa5e9eac294be086a9d1e7326d95bc
This commit is contained in:
Balazs Gerofi
2020-12-15 09:08:13 +09:00
committed by Masamichi Takagi
parent 0b82c8942b
commit 7145c4d383
4 changed files with 27 additions and 0 deletions

View File

@@ -295,7 +295,13 @@ int hugefileobj_create(struct memobj *memobj, size_t len, off_t off,
int pgind;
int npages;
#ifndef ENABLE_FUGAKU_HACKS
for (pgind = 0; pgind < obj->nr_pages; ++pgind) {
#else
/* Map in only the last 8 pages */
for (pgind = ((obj->nr_pages > 8) ? (obj->nr_pages - 8) : 0);
pgind < obj->nr_pages; ++pgind) {
#endif
if (obj->pages[pgind]) {
continue;
}