History

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.

SJ Park committed 4 months ago

Commit 4e061ef1 parent 300cb851 file · +6 −3Browse files

Showing the changes to include (1 of 1 file). Show all

Unified · Split

include/linux/damon.h+6−3
@@ -175,10 +175,8 @@ enum damos_quota_goal_metric { · 174 unmodified lines
175175 * @metric: Metric to be used for representing the goal.
176176 * @target_value: Target value of @metric to achieve with the tuning.
177177 * @current_value: Current value of @metric.
178− * @last_psi_total: Last measured total PSI
179178 * @nid: Node id.
180179 * @memcg_id: Memcg id.
181− * @list: List head for siblings.
182180 *
183181 * Data structure for getting the current score of the quota tuning goal. The
184182 * score is calculated by how close @current_value and @target_value are. Then
@@ -201,12 +199,17 @@ struct damos_quota_goal { · 16 unmodified lines
201199 unsigned long current_value;
202200 /* metric-dependent fields */
203201 union {
204− u64 last_psi_total;
205202 struct {
206203 int nid;
207204 u64 memcg_id;
208205 };
206+/* private: */
207+ /* Last measured total PSI */
208+ u64 last_psi_total;
209+
209210 };
211+/* private: */
212+ /* List head for siblings. */
210213 struct list_head list;
211214 };
212215

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t