From: Nick Piggin Pageattr comments for page_private usage. Signed-off-by: Nick Piggin Cc: Andi Kleen Signed-off-by: Andrew Morton --- arch/x86_64/mm/pageattr.c | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff -puN arch/x86_64/mm/pageattr.c~x86_64-pageattr-remove-__put_page-fix arch/x86_64/mm/pageattr.c --- devel/arch/x86_64/mm/pageattr.c~x86_64-pageattr-remove-__put_page-fix 2006-02-18 03:16:29.000000000 -0800 +++ devel-akpm/arch/x86_64/mm/pageattr.c 2006-02-18 03:16:29.000000000 -0800 @@ -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; _