On Thu, Jul 14, 2016 at 12:14:11PM -0700, Andy Lutomirski wrote:
> We should account for stacks regardless of stack size, and we need
> to account in sub-page units if THREAD_SIZE < PAGE_SIZE. Change the
> units to kilobytes and Move it into account_kernel_stack().
>
> Fixes: 12580e4b54ba8 ("mm: memcontrol: report kernel stack usage in cgroup2
> memory.stat")
> Cc: Vladimir Davydov <[email protected]>
> Cc: Johannes Weiner <[email protected]>
> Cc: Michal Hocko <[email protected]>
> Cc: [email protected]
> Reviewed-by: Josh Poimboeuf <[email protected]>
> Reviewed-by: Vladimir Davydov <[email protected]>
> Acked-by: Michal Hocko <[email protected]>
> Signed-off-by: Andy Lutomirski <[email protected]>
Acked-by: Johannes Weiner <[email protected]>