mm/damon/paddr: do page level access check for pageout DAMOS action on its own
authorSeongJae Park <sj@kernel.org>
Mon, 29 Apr 2024 22:44:49 +0000 (15:44 -0700)
committerAndrew Morton <akpm@linux-foundation.org>
Tue, 7 May 2024 17:37:01 +0000 (10:37 -0700)
commitebd3f70c630a9a1aa1e27a63a7e0ffe97a0c1189
tree95c0f0f64b70126d032424d6143f7dfbc9904ae9
parent69a5f999176d10b2618db00b12e661137b42f5f2
mm/damon/paddr: do page level access check for pageout DAMOS action on its own

'pageout' DAMOS action implementation of 'paddr' DAMON operations set asks
reclaim_pages() to do page level access check if the user is not asking
DAMOS to do that on its own.  Simplify the logic by making the check
always be done by 'paddr'.

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