diff options
author | David S. Miller <davem@davemloft.net> | 2008-03-19 07:53:58 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-04-24 02:32:17 -0400 |
commit | 1f261ef53ba06658dfeb5a9c3007d0ad1b85cadf (patch) | |
tree | 242e8dbc05938b0d330997bf274e6faf22e28458 /arch/sparc64 | |
parent | c1b1a5f1f1b2612b69b67381b223bce9f8ec4da5 (diff) |
[SPARC64]: Allocate TSB node-local.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'arch/sparc64')
-rw-r--r-- | arch/sparc64/mm/tsb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/sparc64/mm/tsb.c b/arch/sparc64/mm/tsb.c index a3e6e4b635b3..fe70c8a557b5 100644 --- a/arch/sparc64/mm/tsb.c +++ b/arch/sparc64/mm/tsb.c | |||
@@ -321,7 +321,8 @@ retry_tsb_alloc: | |||
321 | if (new_size > (PAGE_SIZE * 2)) | 321 | if (new_size > (PAGE_SIZE * 2)) |
322 | gfp_flags = __GFP_NOWARN | __GFP_NORETRY; | 322 | gfp_flags = __GFP_NOWARN | __GFP_NORETRY; |
323 | 323 | ||
324 | new_tsb = kmem_cache_alloc(tsb_caches[new_cache_index], gfp_flags); | 324 | new_tsb = kmem_cache_alloc_node(tsb_caches[new_cache_index], |
325 | gfp_flags, numa_node_id()); | ||
325 | if (unlikely(!new_tsb)) { | 326 | if (unlikely(!new_tsb)) { |
326 | /* Not being able to fork due to a high-order TSB | 327 | /* Not being able to fork due to a high-order TSB |
327 | * allocation failure is very bad behavior. Just back | 328 | * allocation failure is very bad behavior. Just back |