Yang Shi 8675083046 mm: vmscan: use per memcg nr_deferred of shrinker
Use per memcg's nr_deferred for memcg aware shrinkers.  The shrinker's
nr_deferred will be used in the following cases:

    1. Non memcg aware shrinkers
    2. !CONFIG_MEMCG
    3. memcg is disabled by boot parameter

Link: https://lkml.kernel.org/r/20210311190845.9708-11-shy828301@gmail.com
Signed-off-by: Yang Shi <shy828301@gmail.com>
Acked-by: Roman Gushchin <guro@fb.com>
Acked-by: Kirill Tkhai <ktkhai@virtuozzo.com>
Reviewed-by: Shakeel Butt <shakeelb@google.com>
Cc: Dave Chinner <david@fromorbit.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-05-05 11:27:23 -07:00
..
2021-02-24 13:38:27 -08:00
2021-05-05 11:27:19 -07:00
2021-04-30 11:20:37 -07:00
2021-04-30 11:20:36 -07:00
2020-12-15 12:13:47 -08:00
2021-04-30 11:20:39 -07:00
2021-03-02 17:25:46 -07:00
2021-04-16 16:10:37 -07:00
2021-02-26 09:40:59 -08:00
2021-05-05 11:27:19 -07:00
2021-04-30 11:20:37 -07:00
2021-04-30 11:20:40 -07:00