On Tue, Feb 16, 2021 at 4:13 PM Yang Shi <shy828301@xxxxxxxxx> wrote: > > Now nr_deferred is available on per memcg level for memcg aware shrinkers, so don't need > allocate shrinker->nr_deferred for such shrinkers anymore. > > The prealloc_memcg_shrinker() would return -ENOSYS if !CONFIG_MEMCG or memcg is disabled > by kernel command line, then shrinker's SHRINKER_MEMCG_AWARE flag would be cleared. > This makes the implementation of this patch simpler. > > Acked-by: Vlastimil Babka <vbabka@xxxxxxx> > Reviewed-by: Kirill Tkhai <ktkhai@xxxxxxxxxxxxx> > Acked-by: Roman Gushchin <guro@xxxxxx> > Signed-off-by: Yang Shi <shy828301@xxxxxxxxx> Reviewed-by: Shakeel Butt <shakeelb@xxxxxxxxxx>