mm: introduce PAGEFLAGS_MASK to replace ((1UL << NR_PAGEFLAGS) - 1)
[linux-2.6-block.git] / lib / test_printf.c
index 8ac71aee46af09a3f76b8e66e73ee4934c5f3fbd..ec69953cf80c3fa426a885e10b88d9fdd2e054c4 100644 (file)
@@ -614,7 +614,7 @@ page_flags_test(int section, int node, int zone, int last_cpupid,
        bool append = false;
        int i;
 
-       flags &= BIT(NR_PAGEFLAGS) - 1;
+       flags &= PAGEFLAGS_MASK;
        if (flags) {
                page_flags |= flags;
                snprintf(cmp_buf + size, BUF_SIZE - size, "%s", name);