From: Nick Piggin <npiggin@suse.de>
To: Lai Jiangshan <laijs@cn.fujitsu.com>
Cc: Pekka Enberg <penberg@cs.helsinki.fi>,
linux-kernel@vger.kernel.org,
Andrew Morton <akpm@linux-foundation.org>
Subject: Re: [PATCH -mm] slqb: use correct name for rcu callback
Date: Tue, 3 Mar 2009 15:44:04 +0100 [thread overview]
Message-ID: <20090303144404.GB18142@wotan.suse.de> (raw)
In-Reply-To: <49AD3033.4090608@cn.fujitsu.com>
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);
> }
>
>
prev parent reply other threads:[~2009-03-03 14:44 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 13:27 [PATCH -mm] slqb: use correct name for rcu callback Lai Jiangshan
2009-03-03 14:44 ` Nick Piggin [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090303144404.GB18142@wotan.suse.de \
--to=npiggin@suse.de \
--cc=akpm@linux-foundation.org \
--cc=laijs@cn.fujitsu.com \
--cc=linux-kernel@vger.kernel.org \
--cc=penberg@cs.helsinki.fi \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox