lkml.org 
[lkml]   [2016]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 04/11] mm/slab: factor out kmem_cache_node initialization code
On Mon, 28 Mar 2016, js1304@gmail.com wrote:

> From: Joonsoo Kim <iamjoonsoo.kim@lge.com>
> - spin_lock_irq(&n->list_lock);
> - n->free_limit =
> - (1 + nr_cpus_node(node)) *
> - cachep->batchcount + cachep->num;
> - spin_unlock_irq(&n->list_lock);
> + ret = init_cache_node(cachep, node, GFP_KERNEL);
> + if (ret)
> + return ret;

Drop ret and do a

return init_cache_node(...);

instead?

\
 
 \ /
  Last update: 2016-03-29 03:01    [W:0.181 / U:0.104 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site