lkml.org 
[lkml]   [2009]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -mm 3/6] slub: introduce __kfree_rcu
On Tue, 3 Mar 2009, Lai Jiangshan wrote:

> +
> +void __kfree_rcu(const void *x, struct rcu_head *rcu)
> +{
> + call_rcu(rcu, kfree_rcu_callback);
> +}
> +EXPORT_SYMBOL(__kfree_rcu);
> +

The parameter x is unused why require it? I see that SLOB needs it. Cant
you do a similar trick as in SLUB just calculating the start address of
the object from the rcu address?



\
 
 \ /
  Last update: 2009-03-04 16:19    [W:0.091 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site