Merge tag 'v5.18-p1' of git://git.kernel.org/pub/scm/linux/kernel/git/herbert/crypto-2.6
[linux-2.6-microblaze.git] / include / linux / damon.h
index f8e99e4..f23cbfa 100644 (file)
@@ -87,6 +87,7 @@ struct damon_target {
  * @DAMOS_HUGEPAGE:    Call ``madvise()`` for the region with MADV_HUGEPAGE.
  * @DAMOS_NOHUGEPAGE:  Call ``madvise()`` for the region with MADV_NOHUGEPAGE.
  * @DAMOS_STAT:                Do nothing but count the stat.
+ * @NR_DAMOS_ACTIONS:  Total number of DAMOS actions
  */
 enum damos_action {
        DAMOS_WILLNEED,
@@ -95,6 +96,7 @@ enum damos_action {
        DAMOS_HUGEPAGE,
        DAMOS_NOHUGEPAGE,
        DAMOS_STAT,             /* Do nothing but only record the stat */
+       NR_DAMOS_ACTIONS,
 };
 
 /**
@@ -157,10 +159,12 @@ struct damos_quota {
  *
  * @DAMOS_WMARK_NONE:          Ignore the watermarks of the given scheme.
  * @DAMOS_WMARK_FREE_MEM_RATE: Free memory rate of the system in [0,1000].
+ * @NR_DAMOS_WMARK_METRICS:    Total number of DAMOS watermark metrics
  */
 enum damos_wmark_metric {
        DAMOS_WMARK_NONE,
        DAMOS_WMARK_FREE_MEM_RATE,
+       NR_DAMOS_WMARK_METRICS,
 };
 
 /**