From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail203.messagelabs.com (mail203.messagelabs.com [216.82.254.243]) by kanga.kvack.org (Postfix) with SMTP id 9D91E8D0039 for ; Tue, 1 Mar 2011 03:02:01 -0500 (EST) Message-ID: <4D6CA843.3090103@cn.fujitsu.com> Date: Tue, 01 Mar 2011 16:03:15 +0800 From: Lai Jiangshan MIME-Version: 1.0 Subject: [PATCH 0/4] rcu: don't assume the size of struct rcu_head Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=UTF-8 Sender: owner-linux-mm@kvack.org List-ID: To: Ingo Molnar Cc: "Paul E. McKenney" , Christoph Lameter , Pekka Enberg , Eric Dumazet , "David S. Miller" , Matt Mackall , linux-mm@kvack.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org We always keep the struct rcu_head very small, but we may change it in future or under some CONFIGs. There are some other systems may assume the size of struct rcu_head as 2 * sizeof(long). These assumptions obstruct us to add debug information or priority information to struct rcu_head. It is time to fix them. It is glad that I just find 3 places which need to be fixed. These 4 patches are just cleanup patches when the size of struct rcu_head == 2 * sizeof(long). NO overhead added and NO behavior changed. Even when the size of struct rcu_head becomes larger, only slub is changed a little. Signed-off-by: Lai Jiangshan --- -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org