diff options
| author | SeongJae Park <sj@kernel.org> | 2026-01-17 09:52:53 -0800 |
|---|---|---|
| committer | Andrew Morton <akpm@linux-foundation.org> | 2026-01-31 14:22:46 -0800 |
| commit | 52c5d3ee8a64ebbbd53f6090bb42ea268247a314 (patch) | |
| tree | a9c4b5e36a8131546154658c47fde4a1b1922723 | |
| parent | 177c8a272968b6bcdbcc8589a72e3eaa32f975d0 (diff) | |
mm/damon/core: rename damos_filter_out() to damos_core_filter_out()
DAMOS filters are processed on the core layer and operations layer,
depending on their types. damos_filter_out() in core.c, which is for only
core layer handled filters, can confuse the fact. Rename it to
damos_core_filter_out(), to be more explicit about the fact.
Link: https://lkml.kernel.org/r/20260117175256.82826-7-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
| -rw-r--r-- | mm/damon/core.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/damon/core.c b/mm/damon/core.c index 54a7ea98340a..ae5b772ceffb 100644 --- a/mm/damon/core.c +++ b/mm/damon/core.c @@ -1813,7 +1813,7 @@ static bool damos_filter_match(struct damon_ctx *ctx, struct damon_target *t, return matched == filter->matching; } -static bool damos_filter_out(struct damon_ctx *ctx, struct damon_target *t, +static bool damos_core_filter_out(struct damon_ctx *ctx, struct damon_target *t, struct damon_region *r, struct damos *s) { struct damos_filter *filter; @@ -1960,7 +1960,7 @@ static void damos_apply_scheme(struct damon_ctx *c, struct damon_target *t, goto update_stat; damon_split_region_at(t, r, sz); } - if (damos_filter_out(c, t, r, s)) + if (damos_core_filter_out(c, t, r, s)) return; ktime_get_coarse_ts64(&begin); trace_damos_before_apply(cidx, sidx, tidx, r, |
