mm/damon: document get_score_arg field of struct damos_quota
Subsystems (3)
SeongJae Park
maintainerPATCH 1/1 mm/damon: document get_score_arg field of struct damos_quota
Commit 99b36eab9c05 ("mm/damon/core: implement goal-oriented feedback-driven quota auto-tuning") on mm-unstable missed documenting 'get_score_arg' field of 'struct damos_quota' on the kernel-doc comment. Fix it.
Fixes 99b36eab9c05 ("mm/damon/core: implement goal-oriented feedback-driven quota auto-tuning") on mm-unstable
Signed-off-by SeongJae Park <[email protected]>
--- include/linux/damon.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-)
include/linux/damon.h +5 -4
@@ -137,6 +137,7 @@ enum damos_action {* @weight_age: Weight of the region's age for prioritization. * * @get_score: Feedback function for self-tuning quota. +* @get_score_arg: Parameter for @get_score * * To avoid consuming too much CPU time or IO resources for applying the * &struct damos->action to large memory, DAMON allows users to set time and/or
@@ -156,10 +157,10 @@ enum damos_action {* &weight_nr_accesses, and &weight_age, because monitoring operations are * encouraged to respect those. * -* If @get_score function pointer is set, DAMON calls it back and get the -* return value of it for every @reset_interval. Then, DAMON adjusts the -* effective quota using the return value as a feedback score to the current -* quota, using its internal feedback loop algorithm. +* If @get_score function pointer is set, DAMON calls it back with +* @get_score_arg and get the return value of it for every @reset_interval. +* Then, DAMON adjusts the effective quota using the return value as a feedback +* score to the current quota, using its internal feedback loop algorithm. * * The feedback loop algorithem assumes the quota input and the feedback score * output are in a positive proportional relationship, and the goal of the
Signature · 1 line
2.34.1