]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm: memcg: make memcg huge page split support any order split
authorZi Yan <ziy@nvidia.com>
Mon, 3 Apr 2023 20:18:35 +0000 (16:18 -0400)
committerAndrew Morton <akpm@linux-foundation.org>
Wed, 5 Apr 2023 23:02:55 +0000 (16:02 -0700)
commita9cee7269fb9c82e5e64da0da5d96652d4896ad8
tree2313b578010bf4099b45c303bf2bd5b6bff31dbf
parent519adf27ac0868817d3af54cdf497c295a34a783
mm: memcg: make memcg huge page split support any order split

It sets memcg information for the pages after the split.  A new parameter
new_order is added to tell the order of subpages in the new page, always 0
for now.  It prepares for upcoming changes to support split huge page to
any lower order.

Link: https://lkml.kernel.org/r/20230403201839.4097845-4-zi.yan@sent.com
Signed-off-by: Zi Yan <ziy@nvidia.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Matthew Wilcox (Oracle) <willy@infradead.org>
Cc: Michal Koutný <mkoutny@suse.com>
Cc: Roman Gushchin <roman.gushchin@linux.dev>
Cc: Ryan Roberts <ryan.roberts@arm.com>
Cc: Yang Shi <shy828301@gmail.com>
Cc: Yu Zhao <yuzhao@google.com>
Cc: Zach O'Keefe <zokeefe@google.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memcontrol.h
mm/huge_memory.c
mm/memcontrol.c
mm/page_alloc.c