On Fri, Jul 26, 2024 at 08:31:09PM +0000, Roman Gushchin wrote: > Put page_counter_calculate_protection() under CONFIG_MEMCG. > > The protection functionality (min/low limits) is not supported by any > other cgroup subsystem, so page_counter_calculate_protection() and > related static effective_protection() can be compiled out if > CONFIG_MEMCG is not enabled. > > Signed-off-by: Roman Gushchin <roman.gushchin@xxxxxxxxx> > Acked-by: Shakeel Butt <shakeel.butt@xxxxxxxxx> Acked-by: Johannes Weiner <hannes@xxxxxxxxxxx>