Message ID | CAN2Y7hwsrjxUORn8y60cGdc5c-V3NQ6m=jz_vchQV_bKSpjsMg@mail.gmail.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | mm/vmscan: when the swappiness is set to 0, memory swapping should be prohibited during the global reclaim process | expand |
diff --git a/mm/vmscan.c b/mm/vmscan.c index c767d71c43d7..bdbb0fc03412 100644 --- a/mm/vmscan.c +++ b/mm/vmscan.c @@ -2426,14 +2426,7 @@ static void get_scan_count(struct lruvec *lruvec, struct scan_control *sc, goto out; } - /* - * Global reclaim will swap to prevent OOM even with no - * swappiness, but memcg users want to use this knob to - * disable swapping for individual groups completely when - * using the memory controller's swap limit feature would be - * too expensive. - */ - if (cgroup_reclaim(sc) && !swappiness) { + if (!swappiness) { scan_balance = SCAN_FILE; goto out;