提交 ac6434e6 编写于 作者: L Libin 提交者: 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: NChristoph Lameter <cl@linux.com>
Signed-off-by: NLibin <huawei.libin@huawei.com>
Signed-off-by: NPekka Enberg <penberg@kernel.org>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册