diff options
| author | SJ Park <sj@kernel.org> | 2026-07-14 07:35:36 -0700 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-08-06 18:57:05 -0700 |
| commit | 4e061ef21a09ca0256b60ed0cf05085ecae2ef70 (patch) | |
| tree | 4f0c2ef960e052627467ed5eb81220b175a31292 | |
| parent | 300cb8592dd2722783eacb2fece0325570be1b0e (diff) | |
| download | linux-stable-4e061ef21a09ca0256b60ed0cf05085ecae2ef70.tar.gz linux-stable-4e061ef21a09ca0256b60ed0cf05085ecae2ef70.zip | |
mm/damon/core: hide private damos_quota_goal fields
'last_psi_total' and 'list' of damos_quota_goal are intended to be used by
only the DAMON core layer. Those are mistakenly not marked as private,
though. Mark as private.
Link: https://lore.kernel.org/20260714143544.101305-4-sj@kernel.org
Signed-off-by: SJ Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
| -rw-r--r-- | include/linux/damon.h | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/include/linux/damon.h b/include/linux/damon.h index 6e160557a001..d838cc27ee72 100644 --- a/include/linux/damon.h +++ b/include/linux/damon.h @@ -175,10 +175,8 @@ enum damos_quota_goal_metric { * @metric: Metric to be used for representing the goal. * @target_value: Target value of @metric to achieve with the tuning. * @current_value: Current value of @metric. - * @last_psi_total: Last measured total PSI * @nid: Node id. * @memcg_id: Memcg id. - * @list: List head for siblings. * * Data structure for getting the current score of the quota tuning goal. The * score is calculated by how close @current_value and @target_value are. Then @@ -201,12 +199,17 @@ struct damos_quota_goal { unsigned long current_value; /* metric-dependent fields */ union { - u64 last_psi_total; struct { int nid; u64 memcg_id; }; +/* private: */ + /* Last measured total PSI */ + u64 last_psi_total; + }; +/* private: */ + /* List head for siblings. */ struct list_head list; }; |
