OSDN Git Service

mm/damon/modules-common: implement a damos quota params generator
authorSeongJae Park <sj@kernel.org>
Tue, 13 Sep 2022 17:44:45 +0000 (17:44 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 3 Oct 2022 21:03:13 +0000 (14:03 -0700)
commit63e0f90bac0c772c14aecfe36783ab60795d05db
treebd76fda538cfe0cc9b0dce87310f098ee9251e16
parentdd172fbf8f1d3befd0a22357a251d8d516354d5f
mm/damon/modules-common: implement a damos quota params generator

DAMON_RECLAIM and DAMON_LRU_SORT have module parameters for DAMOS quotas
that having same names.  This commit implements a macro for generating
such module parameters so that we can reuse later.

Link: https://lkml.kernel.org/r/20220913174449.50645-19-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/damon/modules-common.h