summaryrefslogtreecommitdiff
path: root/include/linux/consolemap.h
diff options
context:
space:
mode:
authorSJ Park <sj@kernel.org>2026-07-14 07:35:34 -0700
committerAndrew Morton <akpm@linux-foundation.org>2026-08-06 18:57:05 -0700
commite0ea9467dbefc5803fd36b6f1714c2be51518977 (patch)
tree1878b661d965af033e90a4302894d0978e12fa69 /include/linux/consolemap.h
parent5c3746a0fe380ae7ec5ee0e4aaef19b68b51d903 (diff)
mm/damon/core: hide private damon_region fields
Patch series "mm/damon/core: hide core-private struct fields". DAMON core structs hide core-private fields using 'private:' comment tags. It is incomplete and inconsistent. The linked list heads in a few structs, for example, are intended to be hidden, and always be used using the wrapper macros like damon_for_each_region(). But those were mistakenly marked as non-private. A few core layer-only fields were also mistakenly added as non-private. This only encourages callers to directly use the private fields. It is easy to make mistakes, and difficult to control. Mark all such DAMON core struct fields as private. Patches 1-8 mark the private fields for damon_region, damon_target, damos_quota_goal, damos_quota, damos_filter, damos, damon_filter and damon_probe, respectively. Patch 9 removes DAMON_SYSFS's direct access to core-private field, damon_ctx->ops. Finally patch 10 mark the private fields for damon_ctx. This patch (of 10): damon_region->list is intended to be used by only the DAMON core layer. But it is mistakenly not marked as private. Hide it from the callers by marking it private. Link: https://lore.kernel.org/20260714143544.101305-1-sj@kernel.org Link: https://lore.kernel.org/20260714143544.101305-2-sj@kernel.org Signed-off-by: SJ Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'include/linux/consolemap.h')
0 files changed, 0 insertions, 0 deletions