lkml.org 
[lkml]   [2012]   [Sep]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [RFC v2 PATCH 1/7] thp: remove assumptions on pgtable_t type
On Wed, 5 Sep 2012 00:56:33 +0200
Andrea Arcangeli <aarcange@redhat.com> wrote:

> Hi Gerald,
>
> On Wed, Aug 29, 2012 at 05:32:58PM +0200, Gerald Schaefer wrote:
> > +#ifndef __HAVE_ARCH_PGTABLE_DEPOSIT
> > +extern void pgtable_deposit(struct mm_struct *mm, pgtable_t pgtable);
> > +#endif
>
> One minor nitpick on the naming of the two functions: considering that
> those are global exports, that they can only be used by THP and they
> mangle internally with the mm->pmd_huge_pte field (also only defined
> if TRANSPARENT_HUGEPAGE=y), a more specific THP naming may be clearer.
>
> If the current prepare_pmd_huge_pte/get_pmd_huge_pte wasn't good other
> options could be pgtable_trans_huge_deposit/withdraw.
>

Thanks for your feedback. I'll send a new patch series with those
functions renamed, as it has impact on 3 of the 7 patches, and also
including the Kconfig change using HAVE_ARCH_TRANSPARENT_HUGEPAGE.



\
 
 \ /
  Last update: 2012-09-05 20:02    [W:0.115 / U:0.360 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site