]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/sysfs: use the wrapper directly to check if the kdamond is running
authorKaixu Xia <kaixuxia@tencent.com>
Mon, 12 Sep 2022 15:11:53 +0000 (23:11 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:09 +0000 (14:03 -0700)
commitfaff7b2be3d8f5918684260b672b020decaf8254
tree2faf025926775afc00b4f4deae27a467efb26e40
parent9e0ec3ef1a5ccb41d0714c13d952143a8f176121
mm/damon/sysfs: use the wrapper directly to check if the kdamond is running

We can use the 'damon_sysfs_kdamond_running()' wrapper directly to check
if the kdamond is running in 'damon_sysfs_turn_damon_on()'.

Link: https://lkml.kernel.org/r/1662995513-24489-1-git-send-email-kaixuxia@tencent.com
Signed-off-by: Kaixu Xia <kaixuxia@tencent.com>
Reviewed-by: SeongJae Park <sj@kernel.org>
Reviewed-by: Muchun Song <songmuchun@bytedance.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/sysfs.c