summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSJ Park <sj@kernel.org>2026-09-29 01:01:05 -0700
committerAndrew Morton <akpm@linux-foundation.org>2026-10-24 01:56:01 -0700
commit89d16e8622e0209cf6b5cd96a939574cd4850485 (patch)
tree4dc7d127177817d63ce1576f2a1c5e89fbf3cead /include/linux
parentde6632aa7851b987d8f54129e43d75bc681f72b9 (diff)
mm/damon/core: add complement argument to damos_new_quota_goal()
damos_quota_goal->complement needs to be manually set by each API callers. It is easy to make mistakes. Extend the quota goal constructor, damos_new_quota_goal() to receive and set the complement flag value. Also update all callers to use the new signature. Link: https://lore.kernel.org/20260929080113.41708-3-sj@kernel.org Signed-off-by: SJ Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: Asier Gutierrez <gutierrez.asier@huawei-partners.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/damon.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/damon.h b/include/linux/damon.h
index 42234839ce29..63050eb2206a 100644
--- a/include/linux/damon.h
+++ b/include/linux/damon.h
@@ -1090,7 +1090,7 @@ bool damos_filter_for_ops(enum damos_filter_type type);
void damos_destroy_filter(struct damos_filter *f);
struct damos_quota_goal *damos_new_quota_goal(
- enum damos_quota_goal_metric metric,
+ enum damos_quota_goal_metric metric, bool complement,
unsigned long target_value);
void damos_add_quota_goal(struct damos_quota *q, struct damos_quota_goal *g);
void damos_destroy_quota_goal(struct damos_quota_goal *goal);