rusage: Don't count PF_PATCH change

Fujitsu: POSTK_DEBUG_TEMP_FIX_86

Change-Id: Ia23f2d95c67062be3390acafad3e87f087466cdc
This commit is contained in:
Masamichi Takagi
2018-10-12 13:29:23 +09:00
parent 54122360e8
commit f3c9fbf4ea

View File

@@ -2021,8 +2021,8 @@ retry:
/*****/ /*****/
if (ptep && !pgsize_is_contiguous(pgsize)) { if (ptep && !pgsize_is_contiguous(pgsize)) {
//if(rusage_memory_stat_add_with_page(range, phys, pgsize, pgsize, page)) { if (!(reason & PF_PATCH) &&
if(rusage_memory_stat_add(range, phys, pgsize, pgsize)) { rusage_memory_stat_add(range, phys, pgsize, pgsize)) {
/* on-demand paging, phys pages are obtained by ihk_mc_alloc_aligned_pages_user() or get_page() */ /* on-demand paging, phys pages are obtained by ihk_mc_alloc_aligned_pages_user() or get_page() */
dkprintf("%lx+,%s: (on-demand paging && first map) || cow,calling memory_stat_rss_add(),phys=%lx,pgsize=%ld\n", dkprintf("%lx+,%s: (on-demand paging && first map) || cow,calling memory_stat_rss_add(),phys=%lx,pgsize=%ld\n",
phys, __FUNCTION__, phys, pgsize); phys, __FUNCTION__, phys, pgsize);