projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
acfe7d7
)
slab: use NUMA_NO_NODE
author
Andrew Morton
<akpm@linux-foundation.org>
Thu, 28 Jul 2011 20:59:49 +0000
(13:59 -0700)
committer
Pekka Enberg
<penberg@kernel.org>
Sun, 31 Jul 2011 15:14:21 +0000
(18:14 +0300)
Use the nice enumerated constant.
Cc: KOSAKI Motohiro <kosaki.motohiro@jp.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
mm/slab.c
patch
|
blob
|
history
diff --git
a/mm/slab.c
b/mm/slab.c
index
b80282a
..
9594740
100644
(file)
--- a/
mm/slab.c
+++ b/
mm/slab.c
@@
-3403,7
+3403,7
@@
__cache_alloc_node(struct kmem_cache *cachep, gfp_t flags, int nodeid,
cache_alloc_debugcheck_before(cachep, flags);
local_irq_save(save_flags);
- if (nodeid ==
-1
)
+ if (nodeid ==
NUMA_NO_NODE
)
nodeid = slab_node;
if (unlikely(!cachep->nodelists[nodeid])) {