Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752826AbbBRV1S (ORCPT ); Wed, 18 Feb 2015 16:27:18 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:47826 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752223AbbBRV1R (ORCPT ); Wed, 18 Feb 2015 16:27:17 -0500 Date: Wed, 18 Feb 2015 13:27:15 -0800 From: Andrew Morton To: "Wang, Yalin" Cc: "'viro@zeniv.linux.org.uk'" , "'linux-fsdevel@vger.kernel.org'" , "'linux-kernel@vger.kernel.org'" , "Gao, Neil" Subject: Re: [RFC V3] test bit before clear files_struct bits Message-Id: <20150218132715.be18865751a83820f635f04e@linux-foundation.org> In-Reply-To: <35FD53F367049845BC99AC72306C23D10458D6173BCC@CNBJMBX05.corpusers.net> References: <35FD53F367049845BC99AC72306C23D1044A02027E18@CNBJMBX05.corpusers.net> <35FD53F367049845BC99AC72306C23D1044A02027E19@CNBJMBX05.corpusers.net> <35FD53F367049845BC99AC72306C23D10458D6173BCC@CNBJMBX05.corpusers.net> X-Mailer: Sylpheed 3.4.1 (GTK+ 2.24.23; x86_64-pc-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1007 Lines: 23 On Sun, 15 Feb 2015 16:27:27 +0800 "Wang, Yalin" wrote: > +/* > + * __*_if_need version is used in cases that you don't want write a bit which > + * have been set / clear, to avoid dirty cacheline. > + */ > +static inline void __set_bit_if_need(int nr, volatile unsigned long *addr) "if_need" is gramatically incorrect - it should be "if_needed". And __set_bit_if_needed is too long. But I can't think of anything shorter, unless we do something lame like __set_bit2(). __set_bit_if_clear() isn't too bad? Also, your changelog still doesn't include the results of the quantitative testing which you performed to demonstrate that these code sites will benefit from this conversion. Please copy all that info into the changelog! -- 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/