mm/damon: add 'allow' argument to damos_new_filter()
authorSeongJae Park <sj@kernel.org>
Thu, 9 Jan 2025 17:51:21 +0000 (09:51 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:32 +0000 (20:22 -0800)
commite2fbfedad03401a38b8c3b7fd52d8fdcd039d0bc
tree07444185388f0728803fc9bd66d8f883e1404910
parent283cbc006fe5043ee6583f1e6b355e1ade672d07
mm/damon: add 'allow' argument to damos_new_filter()

DAMON API users should set damos_filter->allow manually to use a DAMOS
allow-filter, since damos_new_filter() unsets the field always.  It is
cumbersome and easy to mistake.  Add an arugment for setting the field to
damos_new_filter().

Link: https://lkml.kernel.org/r/20250109175126.57878-6-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
mm/damon/paddr.c
mm/damon/reclaim.c
mm/damon/sysfs-schemes.c
mm/damon/tests/core-kunit.h