mm/damon/paddr: use a separate function for 'DAMOS_PAGEOUT' handling
authorSeongJae Park <sj@kernel.org>
Mon, 13 Jun 2022 19:22:55 +0000 (19:22 +0000)
committerakpm <akpm@linux-foundation.org>
Mon, 4 Jul 2022 01:08:42 +0000 (18:08 -0700)
commit0e93e8bfd0b8b953038785109d0bab72280823f6
treea58596acf1173a4fed9ace050dacdb443b0268be
parentc364f9af299f2a3d16e5bae94e8f155dc8a721a4
mm/damon/paddr: use a separate function for 'DAMOS_PAGEOUT' handling

This commit moves code for 'DAMOS_PAGEOUT' handling of the physical
address space monitoring operations set to a separate function so that its
caller, 'damon_pa_apply_scheme()', can be more easily extended for
additional DAMOS actions later.

Link: https://lkml.kernel.org/r/20220613192301.8817-4-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