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

DAMON keeps all DAMOS filters in damos->filters.  Upcoming changes will
make it to use damos->ops_filters for all operations layer handled DAMOS
filters, though.  DAMON physical address space operations set
implementation (paddr) is not ready for the changes, since it handles only
damos->filters.  To avoid any breakage during the upcoming changes, make
paddr to handle both lists.  After the change is made, ->filters support
on paddr can be safely removed.

Link: https://lkml.kernel.org/r/20250304211913.53574-3-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/paddr.c