diff options
author | Changbin Du <changbin.du@intel.com> | 2017-11-16 02:32:53 +0100 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-11-16 03:21:02 +0100 |
commit | 41710443f790b5f7f5305eba99dacce88e259f4c (patch) | |
tree | f5d90cb7f7e1bccb1f6080c8229d5487c1b08a37 /include | |
parent | net/rds/ib_fmr.c: use kmalloc_array_node() (diff) | |
download | linux-41710443f790b5f7f5305eba99dacce88e259f4c.tar.xz linux-41710443f790b5f7f5305eba99dacce88e259f4c.zip |
mm: update comments for struct page.mapping
struct page.mapping can be NULL or points to one object of type
address_space, anon_vma or KSM private structure.
Link: http://lkml.kernel.org/r/1506485067-15954-1-git-send-email-changbin.du@intel.com
Signed-off-by: Changbin Du <changbin.du@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/mm_types.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index c85f11dafd56..d1b8e8f97fc2 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -48,8 +48,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 */ |