]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] Hugepages: Use page_to_nid rather than traversing zone pointers
authorChristoph Lameter <clameter@sgi.com>
Tue, 26 Sep 2006 06:31:55 +0000 (23:31 -0700)
committerLinus Torvalds <torvalds@g5.osdl.org>
Tue, 26 Sep 2006 15:48:52 +0000 (08:48 -0700)
commit4415cc8df630b05d3a54267d5f3e5c0b63a4ec05
tree528a12aceb17a9c62323425bdc1dc989eb0375c5
parent5a291b98b2116d669449885abef3000f747504b3
[PATCH] Hugepages: Use page_to_nid rather than traversing zone pointers

I found two location in hugetlb.c where we chase pointer instead of using
page_to_nid().  Page_to_nid is more effective and can get the node directly
from page flags.

Signed-off-by: Christoph Lameter <clameter@sgi.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
mm/hugetlb.c