* [folded-merged] memcg-add-per-memcg-vmalloc-stat-v2.patch removed from -mm tree
@ 2022-01-14 21:25 akpm
0 siblings, 0 replies; only message in thread
From: akpm @ 2022-01-14 21:25 UTC (permalink / raw)
To: guro, hannes, mhocko, mm-commits, shakeelb, songmuchun
The patch titled
Subject: memcg-add-per-memcg-vmalloc-stat-v2
has been removed from the -mm tree. Its filename was
memcg-add-per-memcg-vmalloc-stat-v2.patch
This patch was dropped because it was folded into memcg-add-per-memcg-vmalloc-stat.patch
------------------------------------------------------
From: Shakeel Butt <shakeelb@google.com>
Subject: memcg-add-per-memcg-vmalloc-stat-v2
page_memcg() within rcu lock, per Muchun
Link: https://lkml.kernel.org/r/20211222052457.1960701-1-shakeelb@google.com
Signed-off-by: Shakeel Butt <shakeelb@google.com>
Cc: Muchun Song <songmuchun@bytedance.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Roman Gushchin <guro@fb.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/memcontrol.h | 10 ++++++++--
1 file changed, 8 insertions(+), 2 deletions(-)
--- a/include/linux/memcontrol.h~memcg-add-per-memcg-vmalloc-stat-v2
+++ a/include/linux/memcontrol.h
@@ -996,10 +996,16 @@ static inline void mod_memcg_state(struc
static inline void mod_memcg_page_state(struct page *page,
int idx, int val)
{
- struct mem_cgroup *memcg = page_memcg(page);
+ struct mem_cgroup *memcg;
- if (!mem_cgroup_disabled() && memcg)
+ if (mem_cgroup_disabled())
+ return;
+
+ rcu_read_lock();
+ memcg = page_memcg(page);
+ if (memcg)
mod_memcg_state(memcg, idx, val);
+ rcu_read_unlock();
}
static inline unsigned long memcg_page_state(struct mem_cgroup *memcg, int idx)
_
Patches currently in -mm which might be from shakeelb@google.com are
memcg-better-bounds-on-the-memcg-stats-updates.patch
memcg-add-per-memcg-vmalloc-stat.patch
memcg-add-per-memcg-vmalloc-stat-v4.patch
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-01-14 21:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-14 21:25 [folded-merged] memcg-add-per-memcg-vmalloc-stat-v2.patch removed from -mm tree akpm
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.