lkml.org 
[lkml]   [2011]   [Feb]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/8] Fix interleaving for transparent hugepages

On Mon, 21 Feb 2011, Andi Kleen wrote:

> @@ -1830,7 +1830,7 @@ alloc_pages_vma(gfp_t gfp, int order, struct vm_area_struct *vma,
> if (unlikely(pol->mode == MPOL_INTERLEAVE)) {
> unsigned nid;
>
> - nid = interleave_nid(pol, vma, addr, PAGE_SHIFT);
> + nid = interleave_nid(pol, vma, addr, PAGE_SHIFT << order);

Should be PAGE_SHIFT + order.
x


\
 
 \ /
  Last update: 2011-02-22 16:37    [from the cache]
©2003-2011 Jasper Spaans