Commit ac6434e6 authored by Libin's avatar Libin Committed by Pekka Enberg

slub: Remove unnecessary page NULL check

In commit 4d7868e6(slub: Do not dereference NULL pointer in node_match)
had added check for page NULL in node_match.  Thus, it is not needed
to check it before node_match, remove it.
Acked-by: default avatarChristoph Lameter <cl@linux.com>
Signed-off-by: default avatarLibin <huawei.libin@huawei.com>
Signed-off-by: default avatarPekka Enberg <penberg@kernel.org>
parent b39ffbf8
......@@ -2386,7 +2386,7 @@ static __always_inline void *slab_alloc_node(struct kmem_cache *s,
object = c->freelist;
page = c->page;
if (unlikely(!object || !page || !node_match(page, node)))
if (unlikely(!object || !node_match(page, node)))
object = __slab_alloc(s, gfpflags, node, addr, c);
else {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment