|
@@ -326,8 +326,8 @@ static void account_kernel_stack(struct task_struct *tsk, int account)
|
|
}
|
|
}
|
|
|
|
|
|
/* All stack pages belong to the same memcg. */
|
|
/* All stack pages belong to the same memcg. */
|
|
- memcg_kmem_update_page_stat(vm->pages[0], MEMCG_KERNEL_STACK_KB,
|
|
|
|
- account * (THREAD_SIZE / 1024));
|
|
|
|
|
|
+ mod_memcg_page_state(vm->pages[0], MEMCG_KERNEL_STACK_KB,
|
|
|
|
+ account * (THREAD_SIZE / 1024));
|
|
} else {
|
|
} else {
|
|
/*
|
|
/*
|
|
* All stack pages are in the same zone and belong to the
|
|
* All stack pages are in the same zone and belong to the
|
|
@@ -338,8 +338,8 @@ static void account_kernel_stack(struct task_struct *tsk, int account)
|
|
mod_zone_page_state(page_zone(first_page), NR_KERNEL_STACK_KB,
|
|
mod_zone_page_state(page_zone(first_page), NR_KERNEL_STACK_KB,
|
|
THREAD_SIZE / 1024 * account);
|
|
THREAD_SIZE / 1024 * account);
|
|
|
|
|
|
- memcg_kmem_update_page_stat(first_page, MEMCG_KERNEL_STACK_KB,
|
|
|
|
- account * (THREAD_SIZE / 1024));
|
|
|
|
|
|
+ mod_memcg_page_state(first_page, MEMCG_KERNEL_STACK_KB,
|
|
|
|
+ account * (THREAD_SIZE / 1024));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|