mm-damon-dbgfs-support-quotas-of-schemes.patch removed from -mm tree
The patch titled
Subject: mm/damon/dbgfs: support quotas of schemes
has been removed from the -mm tree. Its filename was
mm-damon-dbgfs-support-quotas-of-schemes.patch
This patch was dropped because it was merged into mainline or a subsystem tree
------------------------------------------------------
From: SeongJae Park <[email protected]>
Subject: mm/damon/dbgfs: support quotas of schemes
This commit makes the debugfs interface of DAMON support the scheme quotas by chaning the format of the input for the schemes file.
Signed-off-by SeongJae Park <[email protected]>
Cc Amit Shah <[email protected]>
Cc Benjamin Herrenschmidt <[email protected]>
Cc David Hildenbrand <[email protected]>
Cc David Rientjes <[email protected]>
Cc David Woodhouse <[email protected]>
Cc Greg Thelen <[email protected]>
Cc Jonathan Cameron <[email protected]>
Cc Jonathan Corbet <[email protected]>
Cc Leonard Foerster <[email protected]>
Cc Marco Elver <[email protected]>
Cc Markus Boehme <[email protected]>
Cc Shakeel Butt <[email protected]>
Cc Shuah Khan <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/damon/dbgfs.c | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-)
mm/damon/dbgfs.c renamed from mm/damon/dbgfs.c~mm-damon-dbgfs-support-quotas-of-schemes +9 -5
@@ -105,11 +105,14 @@ static ssize_t sprint_schemes(struct damdamon_for_each_scheme (s, c) { rc =scnprintf (&buf[written], len - written, -"%lu %lu %u %u %u %u %d %lu %lu\n" , +"%lu %lu %u %u %u %u %d %lu %lu %lu %lu %lu\n" , s->min_sz_region, s->max_sz_region, s->min_nr_accesses, s->max_nr_accesses, s->min_age_region, s->max_age_region, - s->action, s->stat_count, s->stat_sz); + s->action, + s->quota.ms, s->quota.sz, + s->quota.reset_interval, + s->stat_count, s->stat_sz);if (!rc)return -ENOMEM ;
@@ -190,10 +193,11 @@ static struct damos **str_to_schemes(conwhile (pos < len && *nr_schemes < max_nr_schemes) {struct damos_quota quota = {}; - ret =sscanf (&str[pos],"%lu %lu %u %u %u %u %u%n" , + ret =sscanf (&str[pos],"%lu %lu %u %u %u %u %u %lu %lu %lu%n" , &min_sz, &max_sz, &min_nr_a, &max_nr_a, - &min_age, &max_age, &action, &parsed); -if (ret !=7 ) + &min_age, &max_age, &action, "a.ms, + "a.sz, "a.reset_interval, &parsed); +if (ret !=10 )break ;if (!damos_action_valid (action)) {pr_err ("wrong action %d\n" , action);
_
Patches currently in -mm which might be from [email protected] are