mm/damon/paddr: deduplicate damon_pa_{mark_accessed,deactivate_pages}()
authorSeongJae Park <sj@kernel.org>
Tue, 13 Sep 2022 17:44:29 +0000 (17:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:10 +0000 (14:03 -0700)
commit8193321ac90d525b33815c77faae7d2d12042c03
tree1b068c304ea9ada31b204ea609be78f45fc4827e
parentf82e70e26b505cd8a1d5c670dc5038a938708d4a
mm/damon/paddr: deduplicate damon_pa_{mark_accessed,deactivate_pages}()

The bodies of damon_pa_{mark_accessed,deactivate_pages}() contains
duplicates.  This commit factors out the common part to a separate
function and removes the duplicates.

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