The kpageflag definitions are subject to change. It is better to have
a dynamic maximum defined for this.
Furthermore, the previous maximum was actually wrong. The KSM pages
were never shown even if such pages were present on the system.
Signed-off-by: Timo Kokkonen <timo.t.kokkonen@iki.fi>
return (BITRANGE(5, 54) & p->pf) >> 5;
}
-#define KPAGEFLAGS_NUM 22
-
enum kpageflags {
LOCKED,
ERROR,
HWPOISON,
NOPAGE,
KSM,
+ __PAGEFLAGS_LAST,
};
+#define KPAGEFLAGS_NUM __PAGEFLAGS_LAST
+
struct kpageflag_str {
int flag;
char *str;