Skip to contentSkip to conversation

mm: update comments for struct page.mapping

PATCH Superseded [email protected] 2 participants 3 messages Sep 26, 2017 – Sep 27, 2017

Subsystems (2)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 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.

---
 include/linux/mm_types.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/mm_types.h +2 -2
index 46f4ecf5..8dd6cb3 100644
@@ -47,8 +47,8 @@ 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.
 						 */
 		void *s_mem;			/* slab first object */
 		atomic_t compound_mapcount;	/* first tail page */
Signature · 7 lines
2.7.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to [email protected].  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"[email protected]"> [email protected] </a>
maintainer
#1 lore raw
Quoted 10 lines · On Tue, 26 Sep 2017 15:14:17 +0800 [email protected] wrote:

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.

...

include/linux/mm_types.h struct page { · line 54

Quoted 10 lines
include/linux/mm_types.h +2 -2
@@ -47,8 +47,8 @@ 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.
 						 */
 		void *s_mem;			/* slab first object */
 		atomic_t compound_mapcount;	/* first tail page */

Why did you remove the (useful) reference to PAGE_MAPPING_ANON?

#2 lore raw
Quoted 9 lines · Andrew Morton
Quoted 7 lines · On Tue, 26 Sep 2017 15:14:17 +0800 [email protected] wrote:

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.

...

Quoted 15 lines

include/linux/mm_types.h struct page { · line 54

Quoted 13 lines
include/linux/mm_types.h +2 -2
@@ -47,8 +47,8 @@ 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.
 						 */
 		void *s_mem;			/* slab first object */
 		atomic_t compound_mapcount;	/* first tail page */

Why did you remove the (useful) reference to PAGE_MAPPING_ANON?

There are two flags now, let me add them back. thanks.

Signature · 2 lines
Thanks,
Changbin Du