From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f197.google.com (mail-pf0-f197.google.com [209.85.192.197]) by kanga.kvack.org (Postfix) with ESMTP id 213996B0069 for ; Wed, 27 Sep 2017 00:11:40 -0400 (EDT) Received: by mail-pf0-f197.google.com with SMTP id f84so20937227pfj.0 for ; Tue, 26 Sep 2017 21:11:40 -0700 (PDT) Received: from mga11.intel.com (mga11.intel.com. [192.55.52.93]) by mx.google.com with ESMTPS id p4si6822821pgf.286.2017.09.26.21.11.39 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 26 Sep 2017 21:11:39 -0700 (PDT) From: changbin.du@intel.com Subject: [PATCH v2] mm: update comments for struct page.mapping Date: Wed, 27 Sep 2017 12:04:27 +0800 Message-Id: <1506485067-15954-1-git-send-email-changbin.du@intel.com> Sender: owner-linux-mm@kvack.org List-ID: To: akpm@linux-foundation.org Cc: linux-kernel@vger.kernel.org, linux-mm@kvack.org, Changbin Du From: Changbin Du The struct page.mapping can NULL or points to one object of type address_space, anon_vma or KSM private structure. Signed-off-by: Changbin Du --- v2: add back flag reference. --- include/linux/mm_types.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/linux/mm_types.h b/include/linux/mm_types.h index 46f4ecf5..6d4c51a 100644 --- a/include/linux/mm_types.h +++ b/include/linux/mm_types.h @@ -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 */ -- 2.7.4 -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org