summaryrefslogtreecommitdiff
path: root/mm/damon/modules-common.h
diff options
context:
space:
mode:
authorSeongJae Park <sj@kernel.org>2022-09-13 20:44:40 +0300
committerAndrew Morton <akpm@linux-foundation.org>2022-10-04 00:03:12 +0300
commit6517d2d97709e01c6758dcccc7a51e3731c8706f (patch)
tree766c626b1238e42979ea846fcdfbe93fc60e4943 /mm/damon/modules-common.h
parentb324ee36e9685689a55c1faee669cd7a1a42bae0 (diff)
downloadlinux-6517d2d97709e01c6758dcccc7a51e3731c8706f.tar.xz
mm/damon/lru_sort: use watermarks parameters generator macro
This commit makes DAMON_LRU_SORT to generate the module parameters for DAMOS watermarks using the generator macro to simplify the code and reduce duplicates. Link: https://lkml.kernel.org/r/20220913174449.50645-14-sj@kernel.org Signed-off-by: SeongJae Park <sj@kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Diffstat (limited to 'mm/damon/modules-common.h')
-rw-r--r--mm/damon/modules-common.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/mm/damon/modules-common.h b/mm/damon/modules-common.h
index 1370590a37d1..4c2ce84869d5 100644
--- a/mm/damon/modules-common.h
+++ b/mm/damon/modules-common.h
@@ -18,8 +18,8 @@
0600);
#define DEFINE_DAMON_MODULES_WMARKS_PARAMS(wmarks) \
- module_param_named(wmarks_interval, wmarks->interval, ulong, \
+ module_param_named(wmarks_interval, wmarks.interval, ulong, \
0600); \
module_param_named(wmarks_high, wmarks.high, ulong, 0600); \
module_param_named(wmarks_mid, wmarks.mid, ulong, 0600); \
- module_param_named(wmarks_low, wmarks.lowulong, 0600);
+ module_param_named(wmarks_low, wmarks.low, ulong, 0600);