[PATCH 1/8] mm: Rename PF argument to modify

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx>

I find the word 'enforce' misleading; this flag is set for Set and Clear
and clear for Test, so the word 'modify' seems more descriptive than
'enforce'.

Signed-off-by: Matthew Wilcox <mawilcox@xxxxxxxxxxxxx>
---
 include/linux/page-flags.h | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index e34a27727b9a..593a5505bbb4 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -188,16 +188,16 @@ static inline int PagePoisoned(const struct page *page)
 #define PF_POISONED_CHECK(page) ({					\
 		VM_BUG_ON_PGFLAGS(PagePoisoned(page), page);		\
 		page; })
-#define PF_ANY(page, enforce)	PF_POISONED_CHECK(page)
-#define PF_HEAD(page, enforce)	PF_POISONED_CHECK(compound_head(page))
-#define PF_ONLY_HEAD(page, enforce) ({					\
+#define PF_ANY(page, modify)	PF_POISONED_CHECK(page)
+#define PF_HEAD(page, modify)	PF_POISONED_CHECK(compound_head(page))
+#define PF_ONLY_HEAD(page, modify) ({					\
 		VM_BUG_ON_PGFLAGS(PageTail(page), page);		\
 		PF_POISONED_CHECK(page); })
-#define PF_NO_TAIL(page, enforce) ({					\
-		VM_BUG_ON_PGFLAGS(enforce && PageTail(page), page);	\
+#define PF_NO_TAIL(page, modify) ({					\
+		VM_BUG_ON_PGFLAGS(modify && PageTail(page), page);	\
 		PF_POISONED_CHECK(compound_head(page)); })
-#define PF_NO_COMPOUND(page, enforce) ({				\
-		VM_BUG_ON_PGFLAGS(enforce && PageCompound(page), page);	\
+#define PF_NO_COMPOUND(page, modify) ({				\
+		VM_BUG_ON_PGFLAGS(modify && PageCompound(page), page);	\
 		PF_POISONED_CHECK(page); })
 
 /*
-- 
2.16.3




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux