From mboxrd@z Thu Jan 1 00:00:00 1970 From: Chris Wright Date: Fri, 31 Mar 2006 06:10:37 +0000 Subject: Re: Synchronizing Bit operations V2 Message-Id: <20060331061037.GD14724@sorel.sous-sol.org> List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: David Mosberger-Tang Cc: Christoph Lameter , Nick Piggin , Zoltan Menyhart , "Boehm, Hans" , "Grundler, Grant G" , "Chen, Kenneth W" , akpm@osdl.org, linux-kernel@vger.kernel.org, linux-ia64@vger.kernel.org * David Mosberger-Tang (David.Mosberger@acm.org) wrote: > I have to agree with Hans and I'd much prefer making the mode part of > the operation's > name and not a parameter. Besides being The Right Thing, it saves a > lot of typing. > For example: > > + set_bit_mode(nr, addr, MODE_ATOMIC); > > would simply become > > + set_bit_atomic(nr, addr); That's the approach Xen took as well. thanks, -chris