Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932110AbWC3ITT (ORCPT ); Thu, 30 Mar 2006 03:19:19 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S932097AbWC3IRq (ORCPT ); Thu, 30 Mar 2006 03:17:46 -0500 Received: from ns.miraclelinux.com ([219.118.163.66]:20051 "EHLO mail01.miraclelinux.com") by vger.kernel.org with ESMTP id S932095AbWC3IRl (ORCPT ); Thu, 30 Mar 2006 03:17:41 -0500 Message-Id: <20060330081729.063394000@localhost.localdomain> References: <20060330081605.085383000@localhost.localdomain> Date: Thu, 30 Mar 2006 16:16:06 +0800 From: Akinobu Mita To: linux-kernel@vger.kernel.org Cc: akpm@osdl.org, Akinobu Mita Subject: [patch 1/8] introduce hlist_move_head() Content-Disposition: inline; filename=hlist-move-head.patch Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 970 Lines: 31 This patch introduces the function hlist_move_head(). This function deletes from one hash list and add as another's head Signed-off-by: Akinobu Mita include/linux/list.h | 5 +++++ 1 files changed, 5 insertions(+) Index: 2.6-git/include/linux/list.h =================================================================== --- 2.6-git.orig/include/linux/list.h +++ 2.6-git/include/linux/list.h @@ -656,6 +656,11 @@ static inline void hlist_add_head(struct n->pprev = &h->first; } +static inline void hlist_move_head(struct hlist_node *n, struct hlist_head *h) +{ + __hlist_del(n); + hlist_add_head(n, h); +} /** * hlist_add_head_rcu - adds the specified element to the specified hlist, -- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/