mm: memcontrol: drain stocks on resize limit
authorShakeel Butt <[email protected]>
Fri, 8 Jun 2018 00:07:27 +0000 (17:07 -0700)
committerLinus Torvalds <[email protected]>
Fri, 8 Jun 2018 00:34:36 +0000 (17:34 -0700)
commitbb4a7ea2b1449722cec9d787dca5a74ca36e8eeb
tree3d4eb1f9a420f3ea5a4b62ad013c42870f99b0d8
parent8dd53fd3b702c12050ec5ddd07b56f8c4608ebea
mm: memcontrol: drain stocks on resize limit

Resizing the memcg limit for cgroup-v2 drains the stocks before
triggering the memcg reclaim.  Do the same for cgroup-v1 to make the
behavior consistent.

Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Shakeel Butt <[email protected]>
Acked-by: Johannes Weiner <[email protected]>
Acked-by: Michal Hocko <[email protected]>
Cc: Greg Thelen <[email protected]>
Cc: Vladimir Davydov <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
mm/memcontrol.c