author: Miaohe Lin <linmiaohe@huawei.com> 2021-09-02 14:55:59 -0700
committer: Linus Torvalds <torvalds@linux-foundation.org> 2021-09-03 09:58:13 -0700
commit: 27fb0956ed08780e480a14c5cca2fd4818e99fa7
parent: bec49c067c679e9b7ca7c1aac50b56618c12d879
Commit Summary:
Diffstat:
1 file changed, 1 insertion, 1 deletion
diff --git a/mm/memcontrol.c b/mm/memcontrol.c
index 80840e026c2f..894a24d5ec55 100644
--- a/mm/memcontrol.c
+++ b/mm/memcontrol.c
@@ -2246,7 +2246,7 @@ static void drain_all_stock(struct mem_cgroup *root_memcg)
if (memcg && stock->nr_pages &&
mem_cgroup_is_descendant(memcg, root_memcg))
flush = true;
- if (obj_stock_flush_required(stock, root_memcg))
+ else if (obj_stock_flush_required(stock, root_memcg))
flush = true;
rcu_read_unlock();