projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1265ef2
)
mm/slub.c: page is always non-NULL in node_match()
author
Wei Yang
<
[email protected]
>
Fri, 28 Dec 2018 08:33:09 +0000
(
00:33
-0800)
committer
Linus Torvalds
<
[email protected]
>
Fri, 28 Dec 2018 20:11:46 +0000
(12:11 -0800)
node_match() is a static function and is only invoked in slub.c.
In all three places, `page' is ensured to be valid.
Link:
http://lkml.kernel.org/r/
[email protected]
Signed-off-by: Wei Yang <
[email protected]
>
Acked-by: Christoph Lameter <
[email protected]
>
Cc: Pekka Enberg <
[email protected]
>
Cc: David Rientjes <
[email protected]
>
Cc: Joonsoo Kim <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
mm/slub.c
patch
|
blob
|
history
diff --git
a/mm/slub.c
b/mm/slub.c
index 3fd791c0dae57241e99a0723f3b90b6e1fa513fe..011e53e5845b2b9744616fa21cbb03ab608fcdfc 100644
(file)
--- a/
mm/slub.c
+++ b/
mm/slub.c
@@
-2369,7
+2369,7
@@
static int slub_cpu_dead(unsigned int cpu)
static inline int node_match(struct page *page, int node)
{
#ifdef CONFIG_NUMA
- if (
!page || (node != NUMA_NO_NODE && page_to_nid(page) != node)
)
+ if (
node != NUMA_NO_NODE && page_to_nid(page) != node
)
return 0;
#endif
return 1;