Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1237945

[PATCH 2/3] page-flags: add documentation for policies

From "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Newsgroups linux.kernel
Subject [PATCH 2/3] page-flags: add documentation for policies
Date 2015-10-02 07:50 +0200
Message-ID <qf1oe-2Go-7@gated-at.bofh.it> (permalink)
References <qf1od-2Go-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


The patch adds description for page flags policies.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
---
 include/linux/page-flags.h | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/include/linux/page-flags.h b/include/linux/page-flags.h
index 465ca42af633..19e4129f00e5 100644
--- a/include/linux/page-flags.h
+++ b/include/linux/page-flags.h
@@ -133,7 +133,23 @@ enum pageflags {
 
 #ifndef __GENERATING_BOUNDS_H
 
-/* Page flags policies wrt compound pages */
+/*
+ * Page flags policies wrt compound pages
+ *
+ * PF_ANY:
+ *     the page flag is relevant for small, head and tail pages.
+ *
+ * PF_HEAD:
+ *     for compound page all operations related to the page flag applied to
+ *     head page.
+ *
+ * PF_NO_TAIL:
+ *     modifications of the page flag must be done on small or head pages,
+ *     checks can be done on tail pages too.
+ *
+ * PF_NO_COMPOUND:
+ *     the page flag is not relevant for compound pages.
+ */
 #define PF_ANY(page, enforce)	page
 #define PF_HEAD(page, enforce)	compound_head(page)
 #define PF_NO_TAIL(page, enforce) ({					\
-- 
2.5.1

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

Back to linux.kernel | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

[PATCH 0/3] page-flags updates "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2015-10-02 07:50 +0200
  [PATCH 2/3] page-flags: add documentation for policies "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2015-10-02 07:50 +0200
  [PATCH 3/3] page-flags: hide PF_* validation check under separate config option "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2015-10-02 07:50 +0200

csiph-web