From: Lai Jiangshan <laijs@cn.fujitsu.com>
To: Pekka Enberg <penberg@cs.helsinki.fi>, linux-kernel@vger.kernel.org
Cc: Andrew Morton <akpm@linux-foundation.org>, Nick Piggin <npiggin@suse.de>
Subject: [PATCH -mm] slqb: use correct name for rcu callback
Date: Tue, 03 Mar 2009 21:27:15 +0800 [thread overview]
Message-ID: <49AD3033.4090608@cn.fujitsu.com> (raw)
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);
}
next reply other threads:[~2009-03-03 13:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-03 13:27 Lai Jiangshan [this message]
2009-03-03 14:44 ` [PATCH -mm] slqb: use correct name for rcu callback Nick Piggin
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=49AD3033.4090608@cn.fujitsu.com \
--to=laijs@cn.fujitsu.com \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=npiggin@suse.de \
--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 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.