]> www.infradead.org Git - nvme.git/commit
mm/damon/core: implement DAMON context commit function
authorSeongJae Park <sj@kernel.org>
Tue, 18 Jun 2024 18:17:59 +0000 (11:17 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Thu, 4 Jul 2024 02:30:13 +0000 (19:30 -0700)
commit9cb3d0b9dfce6a3258d91e6d69e418d0b4cce46a
tree607cd2aba381b91fdd608c52b4baddfc5469626a
parent3ad1dce6c30175dfd3da29d76853a69affbf7489
mm/damon/core: implement DAMON context commit function

Implement functions for supporting online DAMON context level parameters
update.  The function receives two DAMON context structs.  One is the
struct that currently being used by a kdamond and therefore to be updated.
The other one contains the parameters to be applied to the first one.
The function applies the new parameters to the destination struct while
keeping/updating the internal status and operation results.  The function
should be called from DAMON context-update-safe place, like DAMON
callbacks.

Link: https://lkml.kernel.org/r/20240618181809.82078-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
include/linux/damon.h
mm/damon/core.c