Skip to contentSkip to conversation

mm: update comments for struct page.mapping

PATCH Applied [email protected] 1 participant 1 message Sep 27, 2017

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 mm: update comments for struct page.mapping

From: Changbin Du <[email protected]>

The struct page.mapping can NULL or points to one object of type address_space, anon_vma or KSM private structure.

---
v2: add back flag reference.

---
 include/linux/mm_types.h | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
include/linux/mm_types.h +4 -2
index 46f4ecf5..6d4c51a 100644
@@ -47,8 +47,10 @@ struct page {
 						 * inode address_space, or NULL.
 						 * If page mapped as anonymous
 						 * memory, low bit is set, and
-						 * it points to anon_vma object:
-						 * see PAGE_MAPPING_ANON below.
+						 * it points to anon_vma object
+						 * or KSM private structure. See
+						 * PAGE_MAPPING_ANON and
+						 * PAGE_MAPPING_KSM.
 						 */
 		void *s_mem;			/* slab first object */
 		atomic_t compound_mapcount;	/* first tail page */
Signature · 1 line
2.7.4