mm/damon/core: add number of each enum type values
authorSeongJae Park <sj@kernel.org>
Mon, 28 Feb 2022 23:01:57 +0000 (10:01 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Mon, 28 Feb 2022 23:01:57 +0000 (10:01 +1100)
commitdf28c14ea702f7702c4e77e0fbebff59ecf5f9c2
tree684e90011f2aa377106b53dc740bfdd49fafbe0d
parente3b4ce663ee378c0fcb6269b7fe0fef4d80c5c5d
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: Stephen Rothwell <sfr@canb.auug.org.au>
include/linux/damon.h