]> www.infradead.org Git - users/jedix/linux-maple.git/commit
mm/damon: ask apply_scheme() to report filter-passed region-internal bytes
authorSeongJae Park <sj@kernel.org>
Mon, 6 Jan 2025 19:33:49 +0000 (11:33 -0800)
committerAndrew Morton <akpm@linux-foundation.org>
Sun, 26 Jan 2025 04:22:26 +0000 (20:22 -0800)
commitb5bbe9c08fd1519f96832b82256543a567ce2900
tree74bf1927f75667f0b5b1bf8e5e1c1a21c92c531d
parentfc4e40937dcd457adfd529c51be0ac7e20845020
mm/damon: ask apply_scheme() to report filter-passed region-internal bytes

Some DAMOS filter types including those for young page, anon page, and
belonging memcg are handled by underlying DAMON operations set
implementation, via damon_operations->apply_scheme() interface.  How many
bytes of the region have passed the filter can be useful for DAMOS scheme
tuning and access pattern monitoring.  Modify the interface to let the
callback implementation reports back the number if possible.

Link: https://lkml.kernel.org/r/20250106193401.109161-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
mm/damon/paddr.c
mm/damon/vaddr.c