mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-12-01 08:20:44 -05:00
mm/slub.c: page is always non-NULL in node_match()
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]>
This commit is contained in:
parent
1265ef2de4
commit
6159d0f5c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue