]> err.no Git - linux-2.6/commitdiff
[SPARC64]: Allocate TSB node-local.
authorDavid S. Miller <davem@davemloft.net>
Wed, 19 Mar 2008 11:53:58 +0000 (04:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 24 Apr 2008 06:32:17 +0000 (23:32 -0700)
Signed-off-by: David S. Miller <davem@davemloft.net>
arch/sparc64/mm/tsb.c

index a3e6e4b635b3cc174aa91a33cb0a352b5261578a..fe70c8a557b58ae1c96cb4312878797b8d881d49 100644 (file)
@@ -321,7 +321,8 @@ retry_tsb_alloc:
        if (new_size > (PAGE_SIZE * 2))
                gfp_flags = __GFP_NOWARN | __GFP_NORETRY;
 
-       new_tsb = kmem_cache_alloc(tsb_caches[new_cache_index], gfp_flags);
+       new_tsb = kmem_cache_alloc_node(tsb_caches[new_cache_index],
+                                       gfp_flags, numa_node_id());
        if (unlikely(!new_tsb)) {
                /* Not being able to fork due to a high-order TSB
                 * allocation failure is very bad behavior.  Just back