All of
 help / color / mirror / Atom feed
* [folded-merged] mm-memcontrol-rewrite-mem_cgroup_page_lruvec-fix.patch removed from -mm tree
@ 2020-12-18 20:05 akpm
  0 siblings, 0 replies; only message in thread
From: akpm @ 2020-12-18 20:05 UTC (permalink / raw)
  To: mm-commits, sh_def, shakeelb, richard.weiyang, mhocko,
	laoar.shao, hannes, guro, alexander.h.duyck, alex.shi

The patch titled
     Subject: mm/memcg: add missed warning in mem_cgroup_lruvec
has been removed from the -mm tree.  Its filename was

This patch was dropped because it was folded into mm-memcontrol-rewrite-mem_cgroup_page_lruvec.patch

From: Alex Shi <>
Subject: mm/memcg: add missed warning in mem_cgroup_lruvec

commit "(mm/memcontrol:rewrite mem_cgroup_page_lruvec())" on mm tree use
mem_cgroup_lruvec to rewrite mem_cgroup_page_lruvec, but it missed a
DEBUG_VM warning as following, since we always charge a page before
return from allocation. Add back this warning is helpful:


Signed-off-by: Alex Shi <>
Cc: Johannes Weiner <>
Cc: Shakeel Butt <>
Cc: Roman Gushchin <>
Cc: Michal Hocko <>
Cc: Yafang Shao <>
Cc: Alexander Duyck <>
Cc: Hui Su <>
Cc: Wei Yang <>
Signed-off-by: Andrew Morton <>

 include/linux/memcontrol.h |    2 ++
 1 file changed, 2 insertions(+)

--- a/include/linux/memcontrol.h~mm-memcontrol-rewrite-mem_cgroup_page_lruvec-fix
+++ a/include/linux/memcontrol.h
@@ -613,6 +613,8 @@ static inline struct lruvec *mem_cgroup_
 	struct mem_cgroup_per_node *mz;
 	struct lruvec *lruvec;
+	VM_WARN_ON_ONCE(!memcg);
 	if (mem_cgroup_disabled()) {
 		lruvec = &pgdat->__lruvec;
 		goto out;

Patches currently in -mm which might be from are


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-18 20:06 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-18 20:05 [folded-merged] mm-memcontrol-rewrite-mem_cgroup_page_lruvec-fix.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.