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)
commit8eabc77c38d8b7345bc0b234b7d26695c29a0822
tree730a0c694932e6fffadea1018cd3fa36b5a67852
parentbcd0dea5f4fb3d098b03ef3064fe6c8201d7c515
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