Pageattr comments for page_private usage. Signed-off-by: Nick Piggin Index: linux-2.6/arch/i386/mm/pageattr.c =================================================================== --- linux-2.6.orig/arch/i386/mm/pageattr.c +++ linux-2.6/arch/i386/mm/pageattr.c @@ -51,6 +51,10 @@ static struct page *split_large_page(uns if (!base) return NULL; + /* + * page_private is used to track the number of entries in + * the page table page have non standard attributes. + */ SetPagePrivate(base); page_private(base) = 0; Index: linux-2.6/arch/x86_64/mm/pageattr.c =================================================================== --- linux-2.6.orig/arch/x86_64/mm/pageattr.c +++ linux-2.6/arch/x86_64/mm/pageattr.c @@ -45,6 +45,10 @@ static struct page *split_large_page(uns pte_t *pbase; if (!base) return NULL; + /* + * page_private is used to track the number of entries in + * the page table page have non standard attributes. + */ SetPagePrivate(base); page_private(base) = 0; @@ -127,8 +131,8 @@ __change_page_attr(unsigned long address set_pte(kpte, pfn_pte(pfn, prot)); } else { /* - * split_large_page will take the reference for this change_page_attr - * on the split page. + * split_large_page will take the reference for this + * change_page_attr on the split page. */ struct page *split;