]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon: use 'struct damon_target *' instead of 'void *' in target_valid()
authorKaixu Xia <kaixuxia@tencent.com>
Thu, 15 Sep 2022 11:33:41 +0000 (19:33 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:26 +0000 (14:03 -0700)
commit880e31777eb999c8ff9641288c6bd1d8183c1903
treefe823618e9214b94637d25d119618f3a7777d91b
parente47c1a51616c34b72768bd3e2836024af4cd7484
mm/damon: use 'struct damon_target *' instead of 'void *' in target_valid()

We could use 'struct damon_target *' directly instead of 'void *' in
target_valid() operation to make code simple.

Link: https://lkml.kernel.org/r/1663241621-13293-1-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>
include/linux/damon.h
mm/damon/vaddr.c