mm/damon: simplify the parameter passing for 'prepare_access_checks'
authorKaixu Xia <kaixuxia@tencent.com>
Tue, 13 Sep 2022 09:11:24 +0000 (17:11 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:13 +0000 (14:03 -0700)
commit8ef4d5caa66d62b3b87a14d01562fb487651df2e
tree6e885d15999e9d0186827faf9dfb6441ac925759
parenta62518ab1da4eb8bf0335c0e254b3e82e9ce222e
mm/damon: simplify the parameter passing for 'prepare_access_checks'

Patch series "mm/damon: code simplifications and cleanups".

This patchset contains some code simplifications and cleanups for DAMON.

This patch (of 4):

The parameter 'struct damon_ctx *ctx' isn't used in the functions
__damon_{p,v}a_prepare_access_check(), so we can remove it and simplify
the parameter passing.

Link: https://lkml.kernel.org/r/1663060287-30201-1-git-send-email-kaixuxia@tencent.com
Link: https://lkml.kernel.org/r/1663060287-30201-2-git-send-email-kaixuxia@tencent.com
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/paddr.c
mm/damon/vaddr.c