]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon: get the hotness from damon_hot_score() in damon_pageout_score()
authorKaixu Xia <kaixuxia@tencent.com>
Mon, 29 Aug 2022 09:46:06 +0000 (17:46 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 12 Sep 2022 03:26:05 +0000 (20:26 -0700)
commit44dff1c8ab72042042669b869ae56cdca44d5f46
tree730a0c694932e6fffadea1018cd3fa36b5a67852
parent4f44071cd1a7d4aed9bc0fb260913db990934127
mm/damon: get the hotness from damon_hot_score() in damon_pageout_score()

We can get the hotness value from damon_hot_score() directly in
damon_pageout_score() function and improve the code readability.

Link: https://lkml.kernel.org/r/1661766366-20998-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>
mm/damon/ops-common.c