mm/damon/core: expose damos_filter_for_ops() to DAMON kernel API callers
authorSeongJae Park <sj@kernel.org>
Wed, 5 Mar 2025 22:27:29 +0000 (14:27 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 18 Mar 2025 05:06:49 +0000 (22:06 -0700)
commitf7f0d88b7d6da29d2b073740aa130685f0e18609
treeb57dc085f9f5b84920415969e868f773f9971fa4
parent968cbea1bb0e4f608f4c87a3c7d67ef9fd720c33
mm/damon/core: expose damos_filter_for_ops() to DAMON kernel API callers

damos_filter_for_ops() can be useful to avoid putting wrong type of
filters in wrong place.  Make it be exposed to DAMON kernel API callers.

Link: https://lkml.kernel.org/r/20250305222733.59089-5-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>
include/linux/damon.h
mm/damon/core.c