]> git.baikalelectronics.ru Git - kernel.git/commit
mm/damon/core: add number of each enum type values
authorSeongJae Park <sj@kernel.org>
Tue, 22 Mar 2022 21:49:24 +0000 (14:49 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Tue, 22 Mar 2022 22:57:13 +0000 (15:57 -0700)
commiteb1a5ab6750d00727614266e7fa2ea6be174c98e
tree75ed47a6b4ac762bbe57d360df08fb51ddefac3e
parent3bd4723e5143c6ba587d0425012d1b8e6cd54842
mm/damon/core: add number of each enum type values

This commit declares the number of legal values for each DAMON enum types
to make traversals of such DAMON enum types easy and safe.

Link: https://lkml.kernel.org/r/20220228081314.5770-3-sj@kernel.org
Signed-off-by: SeongJae Park <sj@kernel.org>
Cc: David Rientjes <rientjes@google.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jonathan Corbet <corbet@lwn.net>
Cc: Shuah Khan <skhan@linuxfoundation.org>
Cc: Xin Hao <xhao@linux.alibaba.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/damon.h