cgroup/dmem: Add queries for protection values

Callers can use this feedback to be more aggressive in making space for
allocations of a cgroup if they know it is protected.

These are counterparts to memcg's mem_cgroup_below_{min,low}.

Reviewed-by: Maarten Lankhorst <dev@lankhorst.se>
Reviewed-by: Timur Kristóf <timur.kristof@gmail.com>
Signed-off-by: Natalie Vock <natalie.vock@gmx.de>
Link: https://patch.msgid.link/20260804-dmemcg-aggressive-protect-v8-1-07af96681bf8@gmx.de
This commit is contained in:
Natalie Vock 2026-08-04 10:25:16 +02:00 • committed by Natalie Vock
commit dd517e49a3
2 changed files with 78 additions and 0 deletions