]> git.baikalelectronics.ru Git - kernel.git/commit
mm: memcontrol: set the correct memcg swappiness restriction
authorBaolin Wang <baolin.wang@linux.alibaba.com>
Thu, 2 Sep 2021 21:55:53 +0000 (14:55 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 3 Sep 2021 16:58:13 +0000 (09:58 -0700)
commitf01a2c3b01ed6f7d35f8c5c58e502b7976c2bb5c
treefb84926d1f7ae1b6f6297b71e923e9cab0c6dfca
parent2ad8b55b4f1763427323fed80a7104f66bb75d7c
mm: memcontrol: set the correct memcg swappiness restriction

Since commit ded7634512bf ("mm: allow swappiness that prefers reclaiming
anon over the file workingset") has expended the swappiness value to make
swap to be preferred in some systems.  We should also change the memcg
swappiness restriction to allow memcg swap-preferred.

Link: https://lkml.kernel.org/r/d77469b90c45c49953ccbc51e54a1d465bc18f70.1627626255.git.baolin.wang@linux.alibaba.com
Fixes: ded7634512bf ("mm: allow swappiness that prefers reclaiming anon over the file workingset")
Signed-off-by: Baolin Wang <baolin.wang@linux.alibaba.com>
Acked-by: Michal Hocko <mhocko@suse.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Vladimir Davydov <vdavydov.dev@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
mm/memcontrol.c