Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932240AbWC3RR7 (ORCPT ); Thu, 30 Mar 2006 12:17:59 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751316AbWC3RR7 (ORCPT ); Thu, 30 Mar 2006 12:17:59 -0500 Received: from omx2-ext.sgi.com ([192.48.171.19]:1179 "EHLO omx2.sgi.com") by vger.kernel.org with ESMTP id S1750729AbWC3RR5 (ORCPT ); Thu, 30 Mar 2006 12:17:57 -0500 Date: Thu, 30 Mar 2006 09:17:46 -0800 (PST) From: Christoph Lameter To: Zoltan Menyhart cc: Nick Piggin , "Boehm, Hans" , "Grundler, Grant G" , "Chen, Kenneth W" , akpm@osdl.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org Subject: Re: Fix unlock_buffer() to work the same way as bit_unlock() In-Reply-To: <442B9A2A.7000306@bull.net> Message-ID: References: <65953E8166311641A685BDF71D865826A23D40@cacexc12.americas.cpqcorp.net> <442B9A2A.7000306@bull.net> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 944 Lines: 32 On Thu, 30 Mar 2006, Zoltan Menyhart wrote: > Form semantical point of view, the forms: > > bit_foo(..., mode) > and > bit_foo_mode(...) > > are equivalent. Correct but the above form leads to less macro definitions. > However, I do not think your implementation would be efficient due to > selecting the ordering mode at run time: The compiler will select that at compile time. One has the option of also generating run time seletion by specifying a variable instead of a constant when callig these functions. > In addition, we may want to inline these primitives... Of course. > A compile-time selection of the appropriate code sequence would help. They are compile time selected. - 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/