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;
}
return (BITRANGE(5, 54) & p->pf) >> 5;
}
-#define KPAGEFLAGS_NUM 22
-
enum kpageflags {
LOCKED,
ERROR,
enum kpageflags {
LOCKED,
ERROR,
+#define KPAGEFLAGS_NUM __PAGEFLAGS_LAST
+
struct kpageflag_str {
int flag;
char *str;
struct kpageflag_str {
int flag;
char *str;