From 33e939b20d8d2c6859960baa6b8bdfe83d5fd36d Mon Sep 17 00:00:00 2001 From: Liujie Xie Date: Sat, 3 Jul 2021 10:05:21 +0800 Subject: [PATCH] ANDROID: vendor_hooks: add a field in mem_cgroup Add a field in mem_cgroup to record additional per-cgroup information for memory policy tuning. Bug: 192052083 Bug: 330272526 Signed-off-by: Liujie Xie Change-Id: I28c8bc1c2455d53e68a05555b57b76ded27af98a (cherry picked from commit 2c7626a1ab442df63394ca86866adcaa3e1b9386) --- include/linux/memcontrol.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/linux/memcontrol.h b/include/linux/memcontrol.h index e1b41554a5fb..ea37a4342334 100644 --- a/include/linux/memcontrol.h +++ b/include/linux/memcontrol.h @@ -323,6 +323,8 @@ struct mem_cgroup { spinlock_t event_list_lock; #endif /* CONFIG_MEMCG_V1 */ + ANDROID_OEM_DATA(1); + struct mem_cgroup_per_node *nodeinfo[]; };