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

DAMON_LRU_SORT have module parameters for DAMOS time quota only but size
quota.  This commit implements a macro for generating the module
parameters so that we can reuse later.

Link: https://lkml.kernel.org/r/20220913174449.50645-20-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