mm: update comments for struct page.mapping
Subsystems (2)
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
@@ -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>
Andrew Morton
maintainerQuoted 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_vmaor 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?
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_vmaor 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