mm/damon/core: support committing ops_filters
authorSeongJae Park <sj@kernel.org>
Tue, 4 Mar 2025 21:19:07 +0000 (13:19 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Mar 2025 07:05:38 +0000 (00:05 -0700)
commit3607cc590f183179dd804faac27ee7284f6b6bf8
tree223574c98110b197e90efada3f60b38e629033c4
parentac7b094bf4d6bd34cea84d1f97f4fe5c45984b6a
mm/damon/core: support committing ops_filters

DAMON kernel API callers should use damon_commit_ctx() to install DAMON
parameters including DAMOS filters.  But damos_commit_ops_filters(), which
is called by damon_commit_ctx() for filters installing, is not handling
damos->ops_filters.  Hence, no DAMON kernel API caller can use
damos->ops_filters.  Do the committing of the ops_filters to make it
usable.

Link: https://lkml.kernel.org/r/20250304211913.53574-4-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/core.c