]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitab53126ec17dc0715d9f3d365bfcefcec1189b62
tree6e885d15999e9d0186827faf9dfb6441ac925759
parent5ebe00e962966778ff562423d47affee0e5775a2
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