numa_init(): fix rusage memory counting

This commit is contained in:
Balazs Gerofi
2017-07-19 08:23:05 +09:00
parent 01f5e46865
commit 51ed8dce06

View File

@ -1192,8 +1192,7 @@ static void numa_init(void)
numa_id);
#endif
#ifdef IHK_RBTREE_ALLOCATOR
rusage_total_memory_add(memory_nodes[numa_id].nr_free_pages *
PAGE_SIZE);
rusage_total_memory_add(end - start);
#else
rusage_total_memory_add(ihk_pagealloc_count(allocator) *
PAGE_SIZE);