All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -mm] slqb: use correct name for rcu callback
@ 2009-03-03 13:27 Lai Jiangshan
  2009-03-03 14:44 ` Nick Piggin
  0 siblings, 1 reply; 2+ messages in thread
From: Lai Jiangshan @ 2009-03-03 13:27 UTC (permalink / raw)
  To: Pekka Enberg, linux-kernel; +Cc: Andrew Morton, Nick Piggin


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);
 }
 



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH -mm] slqb: use correct name for rcu callback
  2009-03-03 13:27 [PATCH -mm] slqb: use correct name for rcu callback Lai Jiangshan
@ 2009-03-03 14:44 ` Nick Piggin
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Piggin @ 2009-03-03 14:44 UTC (permalink / raw)
  To: Lai Jiangshan; +Cc: Pekka Enberg, linux-kernel, Andrew Morton

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);
>  }
>  
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-03-03 14:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-03-03 13:27 [PATCH -mm] slqb: use correct name for rcu callback Lai Jiangshan
2009-03-03 14:44 ` Nick Piggin

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.