]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/vmpressure: replace vmpressure_to_css() with vmpressure_to_memcg()
authorHui Su <suhui@zeku.com>
Mon, 23 Aug 2021 23:59:32 +0000 (09:59 +1000)
committerStephen Rothwell <sfr@canb.auug.org.au>
Wed, 25 Aug 2021 23:34:12 +0000 (09:34 +1000)
commita26af674f738d2cfda19e8df1e0b9b94acb22d52
tree11e60908ce05a04701a1e249af1919f63dc961fe
parent69c7a36a7d770a56e1e9e6f1a0407db10e69aeb5
mm/vmpressure: replace vmpressure_to_css() with vmpressure_to_memcg()

We can get memcg directly form vmpr instead of vmpr->memcg->css->memcg, so
add a new func helper vmpressure_to_memcg().  And no code will use
vmpressure_to_css(), so delete it.

Link: https://lkml.kernel.org/r/20210630112146.455103-1-suhui@zeku.com
Signed-off-by: Hui Su <suhui@zeku.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Acked-by: Chris Down <chris@chrisdown.name>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au>
include/linux/vmpressure.h
mm/memcontrol.c
mm/vmpressure.c