shmobj: Fix rusage counting for large page
Fujitsu: POSTK_DEBUG_TEMP_FIX_88 Change-Id: I852fe804bddf6da5b93a2ac72b0461ee63c98d46
This commit is contained in:
committed by
Dominique Martinet
parent
85c936a6cb
commit
1a3c73468f
@@ -271,7 +271,7 @@ static void shmobj_destroy(struct shmobj *obj)
|
||||
/* Track change in page->count for shmobj.
|
||||
It is decremented in here or shmobj_invalidate() or clear_range(). */
|
||||
dkprintf("%lx-,%s: calling memory_stat_rss_sub(),phys=%lx,size=%ld,pgsize=%ld\n", phys, __FUNCTION__, phys, npages * PAGE_SIZE, PAGE_SIZE);
|
||||
memory_stat_rss_sub(npages * PAGE_SIZE, PAGE_SIZE);
|
||||
memory_stat_rss_sub(npages * PAGE_SIZE, npages * PAGE_SIZE);
|
||||
}
|
||||
#if 0
|
||||
dkprintf("shmobj_destroy(%p):"
|
||||
@@ -459,7 +459,7 @@ static int shmobj_invalidate_page(struct memobj *memobj, uintptr_t phys,
|
||||
/* Track change in page->count for shmobj.
|
||||
It is decremented in here or shmobj_destroy() or clear_range(). */
|
||||
dkprintf("%lx-,%s: calling memory_stat_rss_sub(),phys=%lx,size=%ld,pgsize=%ld\n", phys, __FUNCTION__, phys, pgsize, PAGE_SIZE);
|
||||
memory_stat_rss_sub(pgsize, PAGE_SIZE);
|
||||
memory_stat_rss_sub(pgsize, pgsize);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user