lkml.org 
[lkml]   [2012]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [patch -mm] mm, thp: fix mlock statistics fix
On Wed, 3 Oct 2012 14:10:41 -0700 (PDT)
David Rientjes <rientjes@google.com> wrote:

> > The free_page_mlock() hunk gets dropped because free_page_mlock() is
> > removed. And clear_page_mlock() doesn't need this treatment. But
> > please check my handiwork.
> >
>
> I reviewed what was merged into -mm and clear_page_mlock() does need this
> fix as well.

argh, it got me *again*. grr.

From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm: document PageHuge somewhat

Cc: David Rientjes <rientjes@google.com>
Cc: Mel Gorman <mel@csn.ul.ie>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---

mm/hugetlb.c | 5 +++++
1 file changed, 5 insertions(+)

diff -puN mm/hugetlb.c~mm-document-pagehuge-somewhat mm/hugetlb.c
--- a/mm/hugetlb.c~mm-document-pagehuge-somewhat
+++ a/mm/hugetlb.c
@@ -671,6 +671,11 @@ static void prep_compound_gigantic_page(
}
}

+/*
+ * PageHuge() only returns true for hugetlbfs pages, but not for normal or
+ * transparent huge pages. See the PageTransHuge() documentation for more
+ * details.
+ */
int PageHuge(struct page *page)
{
compound_page_dtor *dtor;
_



\
 
 \ /
  Last update: 2012-10-04 08:41    [W:0.082 / U:1.052 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site