]> 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, 26 Feb 2024 20:55:31 +0000 (15:55 -0500)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 5 Mar 2024 01:01:20 +0000 (17:01 -0800)
commitb8791381d7edae3706edde207f52d9e483ed400c
tree90b4b2f407d501497e0c144dcbf6187c13f47032
parent9a581c12cddb06696fe4811239934fcde57ceb91
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/20240226205534.1603748-6-zi.yan@sent.com
Signed-off-by: Zi Yan <ziy@nvidia.com>
Acked-by: David Hildenbrand <david@redhat.com>
Cc: Hugh Dickins <hughd@google.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Luis Chamberlain <mcgrof@kernel.org>
Cc: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: Michal Koutny <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