Thread (24 messages) 24 messages, 6 authors, 2011-02-22

Re: [PATCH 1/8] Fix interleaving for transparent hugepages

From: Andi Kleen <hidden>
Date: 2011-02-22 17:11:23
Also in: lkml

On 2/22/2011 7:34 AM, Christoph Lameter wrote:
On Mon, 21 Feb 2011, Andi Kleen wrote:
quoted
@@ -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.
Oops. True. Thanks.

-Andi

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help