OpenCloudOS-Kernel/mm/damon
Kaixu Xia 29454cf6ab mm/damon/core: simplify the kdamond stop mechanism by removing 'done'
When the 'kdamond_wait_activation()' function or 'after_sampling()' or
'after_aggregation()' DAMON callbacks return an error, it is unnecessary
to use bool 'done' to check if kdamond should be finished.  This commit
simplifies the kdamond stop mechanism by removing 'done' and break the
while loop directly in the cases.

Link: https://lkml.kernel.org/r/1663060287-30201-4-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>
2022-10-03 14:03:14 -07:00
..
Kconfig mm/damon/Kconfig: notify debugfs deprecation plan 2022-10-03 14:03:06 -07:00
Makefile mm/damon: introduce DAMON-based LRU-lists Sorting 2022-07-03 18:08:43 -07:00
core-test.h mm/damon/core-test: test damon_set_regions 2022-10-03 14:03:06 -07:00
core.c mm/damon/core: simplify the kdamond stop mechanism by removing 'done' 2022-10-03 14:03:14 -07:00
dbgfs-test.h mm/damon/dbgfs-test: fix is_target_id() change 2022-03-22 15:57:12 -07:00
dbgfs.c mm/damon/core: reduce parameters for damon_set_attrs() 2022-10-03 14:03:10 -07:00
lru_sort.c mm/damon/lru_sort: deduplicate hot/cold schemes generators 2022-10-03 14:03:13 -07:00
modules-common.h mm/damon/modules-common: implement damos time quota params generator 2022-10-03 14:03:13 -07:00
ops-common.c mm/damon/core: use a dedicated struct for monitoring attributes 2022-10-03 14:03:10 -07:00
ops-common.h mm/damon/schemes: add 'LRU_PRIO' DAMOS action 2022-07-03 18:08:42 -07:00
paddr.c mm/damon: simplify the parameter passing for 'prepare_access_checks' 2022-10-03 14:03:13 -07:00
reclaim.c mm/damon/reclaim: use the quota params generator macro 2022-10-03 14:03:13 -07:00
sysfs.c mm/damon/sysfs: simplify the variable 'pid' assignment operation 2022-10-03 14:03:14 -07:00
vaddr-test.h damon: convert __damon_va_three_regions to use the VMA iterator 2022-09-26 19:46:16 -07:00
vaddr.c mm/damon: simplify the parameter passing for 'prepare_access_checks' 2022-10-03 14:03:13 -07:00