mm/damon/core: hide private damon_target fields

'nr_regions', 'regions_list' and 'list' fields of damon_target are
intended to be used by only the DAMON core layer.  Those are mistakenly
not marked as private.  Mark as private.

Link: https://lore.kernel.org/20260714143544.101305-3-sj@kernel.org
Signed-off-by: SJ Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
This commit is contained in:
SJ Park 2026-07-14 07:35:35 -07:00 committed by Andrew Morton
parent e0ea9467db
commit 300cb8592d

View File

@ -79,9 +79,6 @@ struct damon_region {
/**
* struct damon_target - Represents a monitoring target.
* @pid: The PID of the virtual address space to monitor.
* @nr_regions: Number of monitoring target regions of this target.
* @regions_list: Head of the monitoring target regions of this target.
* @list: List head for siblings.
* @obsolete: Whether the commit destination target is obsolete.
*
* Each monitoring context could have multiple targets. For example, a context
@ -95,10 +92,14 @@ struct damon_region {
*/
struct damon_target {
struct pid *pid;
unsigned int nr_regions;
struct list_head regions_list;
struct list_head list;
bool obsolete;
/* private: */
/* Number of monitoring target regions of this target. */
unsigned int nr_regions;
/* Head of the monitoring target regions of this target. */
struct list_head regions_list;
/* List head for siblings. */
struct list_head list;
};
/**