Commit 4b2904f3 authored by Alex Shi's avatar Alex Shi Committed by Stephen Rothwell
Browse files

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: default avatarAlex 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: default avatarAndrew Morton <>
Signed-off-by: default avatarStephen Rothwell <>
parent 1213af3b
......@@ -618,6 +618,7 @@ static inline struct lruvec *mem_cgroup_lruvec(struct mem_cgroup *memcg,
goto out;
if (!memcg)
memcg = root_mem_cgroup;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment