]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
mm: memcg: add folio_memcg_check()
authorMatthew Wilcox <willy@infradead.org>
Fri, 30 Dec 2022 07:08:42 +0000 (15:08 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 19 Jan 2023 01:12:52 +0000 (17:12 -0800)
commitbecacb04fdd439d7d1f2a93739161706a2e3e947
treec94a8ee8560756c3daabaa076c493f2bd1d6ffe8
parent071acb3084c5e04db3ff09865e4030aefaa2ab92
mm: memcg: add folio_memcg_check()

Patch series "mm: convert page_idle/damon to use folios", v4.

This patch (of 8):

Convert page_memcg_check() into folio_memcg_check() and add a
page_memcg_check() wrapper.  The behaviour of page_memcg_check() is
unchanged; tail pages always had a NULL ->memcg_data.

Link: https://lkml.kernel.org/r/20221230070849.63358-1-wangkefeng.wang@huawei.com
Link: https://lkml.kernel.org/r/20221230070849.63358-2-wangkefeng.wang@huawei.com
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Kefeng Wang <wangkefeng.wang@huawei.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: SeongJae Park <sj@kernel.org>
Cc: Vishal Moola (Oracle) <vishal.moola@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/memcontrol.h
mm/memcontrol.c