mirror of
https://github.com/torvalds/linux.git
synced 2026-08-01 20:22:08 +02:00
mm/damon/sysfs-schemes: support DAMOS_QUOTA_NODE_MEMCG_FREE_BP
Extend DAMON sysfs to support DAMOS_QUOTA_NODE_MEMCG_FREE_BP. Link: https://lkml.kernel.org/r/20251017212706.183502-8-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
parent
98fdce76fb
commit
c2fbf2da4c
|
|
@ -1034,6 +1034,10 @@ struct damos_sysfs_qgoal_metric_name damos_sysfs_qgoal_metric_names[] = {
|
|||
.metric = DAMOS_QUOTA_NODE_MEMCG_USED_BP,
|
||||
.name = "node_memcg_used_bp",
|
||||
},
|
||||
{
|
||||
.metric = DAMOS_QUOTA_NODE_MEMCG_FREE_BP,
|
||||
.name = "node_memcg_free_bp",
|
||||
},
|
||||
};
|
||||
|
||||
static ssize_t target_metric_show(struct kobject *kobj,
|
||||
|
|
@ -2552,6 +2556,7 @@ static int damos_sysfs_add_quota_score(
|
|||
goal->nid = sysfs_goal->nid;
|
||||
break;
|
||||
case DAMOS_QUOTA_NODE_MEMCG_USED_BP:
|
||||
case DAMOS_QUOTA_NODE_MEMCG_FREE_BP:
|
||||
err = damon_sysfs_memcg_path_to_id(
|
||||
sysfs_goal->path, &goal->memcg_id);
|
||||
if (err) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user