]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon: rename damon_pageout_score() to damon_cold_score()
authorKaixu Xia <kaixuxia@tencent.com>
Sat, 17 Sep 2022 13:56:54 +0000 (21:56 +0800)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:31 +0000 (14:03 -0700)
commit0dfbe4cf8536bc37d9475f9db6d3fd6a437205a9
tree2a06c0c1ec5790312bccf48f0ff162fbc413233d
parent76f63613a0e9ad2f3b8e7e849de1fc97d625bf8b
mm/damon: rename damon_pageout_score() to damon_cold_score()

In the beginning there is only one damos_action 'DAMOS_PAGEOUT' that need
to get the coldness score of a region for a scheme, which using
damon_pageout_score() to do that.  But now there are also other
damos_action actions need the coldness score, so rename it to
damon_cold_score() to make more sense.

Link: https://lkml.kernel.org/r/1663423014-28907-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
mm/damon/ops-common.h
mm/damon/paddr.c
mm/damon/vaddr.c