Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754374AbbERSGS (ORCPT ); Mon, 18 May 2015 14:06:18 -0400 Received: from mailsec101.isp.belgacom.be ([195.238.20.97]:40940 "EHLO mailsec101.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754193AbbERSGP convert rfc822-to-8bit (ORCPT ); Mon, 18 May 2015 14:06:15 -0400 X-Cloudmark-SP-Filtered: true X-Cloudmark-SP-Result: v=1.1 cv=aVuRYB9jFzFsbHnyIO6WTXMsFsysg296qeRS+2aVNsk= c=1 sm=2 a=IkcTkHD0fZMA:10 a=drOt6m5kAAAA:8 a=_rHcsliD0yiW4nYlkNQA:9 a=QEXdDO2ut3YA:10 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2CMCwDGKFpV/9IU7sNcgxCBMoMer1gGmVICgTZMAQEBAQEBgQtBA4NeAQEBAwEjBFIFCwUEAhgCAhgOAgJXBhMRiBMMl1KdB4ZUnS8MIIEhhHWFJIRSMweCaIFFBZlehSiDaIJ9hHmCModVI2GDGTwxgkYBAQE Date: Mon, 18 May 2015 20:06:13 +0200 (CEST) From: Fabian Frederick Reply-To: Fabian Frederick To: Al Viro Cc: linux-kernel@vger.kernel.org, Dave Chinner , xfs@oss.sgi.com Message-ID: <1618479490.17551.1431972373169.open-xchange@webmail.nmp.proximus.be> In-Reply-To: <20150518171946.GY7232@ZenIV.linux.org.uk> References: <1431969231-12834-1-git-send-email-fabf@skynet.be> <20150518171946.GY7232@ZenIV.linux.org.uk> Subject: Re: [PATCH 1/4 linux-next] xfs: use swap() in xfs_dir2_leafn_rebalance() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.2.2-Rev27 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1210 Lines: 29 > On 18 May 2015 at 19:19 Al Viro wrote: > > > On Mon, May 18, 2015 at 07:13:48PM +0200, Fabian Frederick wrote: > >      * If the block order is wrong, swap the arguments. > >      */ > > -   if ((swap = xfs_dir2_leafn_order(dp, blk1->bp, blk2->bp))) { > > -           xfs_da_state_blk_t      *tmp;   /* temp for block swap */ > > +   swap = xfs_dir2_leafn_order(dp, blk1->bp, blk2->bp); > > +   if (swap) > > +           swap(blk1, blk2); > > Egads...  Have you even read what you'd written?  Yes, sure, preprocessor > will do the right thing, but it's a very noticable annoyance for somebody > reading that.  Rename the bleeding flag, please. I wanted to focus on the swap() update in this small patchset (some other things should be done in there like have xfs_dir2_leafn_order() return bool) but I can rename it in something like need_swap. Do I need to resend the 4 patches Dave ? Regards, Fabian -- 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/