RE: [PATCH 26/36] mm: rework mapcount accounting to enable 4k mapping of THPs

From: Kirill A. Shutemov
Date: Sun Jul 12 2015 - 15:14:02 EST


Kirill A. Shutemov wrote:
> TESTPAGEFLAG_FALSE(TransHuge)
> TESTPAGEFLAG_FALSE(TransCompound)
> TESTPAGEFLAG_FALSE(TransTail)
> +TESTPAGEFLAG_FALSE(DoubleMap)
> + TESTSETFLAG_FALSE(DoubleMap)
> + CLEARPAGEFLAG_NOOP(DoubleMap)
> #endif
>
> /*

Fixlet for !THP:


diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 757a4b162242..eec24e6391d3 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -633,7 +633,7 @@ TESTPAGEFLAG_FALSE(TransCompound)
TESTPAGEFLAG_FALSE(TransTail)
TESTPAGEFLAG_FALSE(DoubleMap)
TESTSETFLAG_FALSE(DoubleMap)
- CLEARPAGEFLAG_NOOP(DoubleMap)
+ TESTCLEARFLAG_FALSE(DoubleMap)
#endif

/*
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/