aboutsummaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
Diffstat (limited to 'mm')
-rw-r--r--mm/memcontrol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index f6477a9dbe7a..485c688a7fa8 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -1108,6 +1108,8 @@ static unsigned long mem_cgroup_margin(struct mem_cgroup *memcg)
1108 limit = READ_ONCE(memcg->memsw.limit); 1108 limit = READ_ONCE(memcg->memsw.limit);
1109 if (count <= limit) 1109 if (count <= limit)
1110 margin = min(margin, limit - count); 1110 margin = min(margin, limit - count);
1111 else
1112 margin = 0;
1111 } 1113 }
1112 1114
1113 return margin; 1115 return margin;