diff --git a/mm/damon/core.c b/mm/damon/core.c index 91964336ce31..806a67d02a6e 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -211,6 +211,12 @@ static struct damon_probe *damon_nth_probe(int n, struct damon_ctx *ctx) static bool damon_has_probe_weights(struct damon_ctx *c) { + struct damon_probe *p; + + damon_for_each_probe(p, c) { + if (p->weight) + return true; + } return false; }