lkml.org 
[lkml]   [2009]   [Mar]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH -mm] slqb: use correct name for rcu callback
Thanks.
Acked-by: Nick Piggin <npiggin@suse.de>

On Tue, Mar 03, 2009 at 09:27:15PM +0800, Lai Jiangshan wrote:
>
> struct slqb_page defines struct rcu_head rcu_head for rcu,
> the rcu callback should use it.
>
> Signed-off-by: Lai Jiangshan <laijs@cn.fujitsu.com>
> ---
> diff --git a/mm/slqb.c b/mm/slqb.c
> index 07bf5b3..48bdf3b 100644
> --- a/mm/slqb.c
> +++ b/mm/slqb.c
> @@ -1026,7 +1043,7 @@ static void rcu_free_slab(struct rcu_head *h)
> {
> struct slqb_page *page;
>
> - page = container_of((struct list_head *)h, struct slqb_page, lru);
> + page = container_of(h, struct slqb_page, rcu_head);
> __free_slab(page->list->cache, page);
> }
>
>


\
 
 \ /
  Last update: 2009-03-03 15:47    [W:0.048 / U:2.892 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site