diff options
author | SeongJae Park <sj@kernel.org> | 2022-09-13 20:44:49 +0300 |
---|---|---|
committer | Andrew Morton <akpm@linux-foundation.org> | 2022-10-04 00:03:13 +0300 |
commit | a62518ab1da4eb8bf0335c0e254b3e82e9ce222e (patch) | |
tree | fcdc4ced8ef03babf1878ab0cf931d23aa3e1886 /scripts/patch-kernel | |
parent | 45b8212fc555d07ed78b9270283d61afbdee1df6 (diff) | |
download | linux-a62518ab1da4eb8bf0335c0e254b3e82e9ce222e.tar.xz |
mm/damon/lru_sort: deduplicate hot/cold schemes generators
damon_lru_sort_new_{hot,cold}_scheme() have quite a lot of duplicates.
This commit factors out the duplicate to a separate function and use it
for reducing the duplicate.
Link: https://lkml.kernel.org/r/20220913174449.50645-23-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'scripts/patch-kernel')
0 files changed, 0 insertions, 0 deletions