Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

SeongJae Park and committed by
Andrew Morton
52c5d3ee 177c8a27

+2 -2
+2 -2
mm/damon/core.c
··· 1813 1813 return matched == filter->matching; 1814 1814 } 1815 1815 1816 - static bool damos_filter_out(struct damon_ctx *ctx, struct damon_target *t, 1816 + static bool damos_core_filter_out(struct damon_ctx *ctx, struct damon_target *t, 1817 1817 struct damon_region *r, struct damos *s) 1818 1818 { 1819 1819 struct damos_filter *filter; ··· 1960 1960 goto update_stat; 1961 1961 damon_split_region_at(t, r, sz); 1962 1962 } 1963 - if (damos_filter_out(c, t, r, s)) 1963 + if (damos_core_filter_out(c, t, r, s)) 1964 1964 return; 1965 1965 ktime_get_coarse_ts64(&begin); 1966 1966 trace_damos_before_apply(cidx, sidx, tidx, r,