Merge tag 'platform-drivers-x86-v5.7-1' of git://git.infradead.org/linux-platform...
[linux-block.git] / kernel / fork.c
index 86425305cd4acc59b9d1c6a76a4c912d73ca2059..d90af13431c7e2e974ef8e47793b178f44ee3b58 100644 (file)
@@ -397,8 +397,8 @@ static void account_kernel_stack(struct task_struct *tsk, int account)
                mod_zone_page_state(page_zone(first_page), NR_KERNEL_STACK_KB,
                                    THREAD_SIZE / 1024 * account);
 
-               mod_memcg_page_state(first_page, MEMCG_KERNEL_STACK_KB,
-                                    account * (THREAD_SIZE / 1024));
+               mod_memcg_obj_state(stack, MEMCG_KERNEL_STACK_KB,
+                                   account * (THREAD_SIZE / 1024));
        }
 }