Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp902641pxb; Fri, 22 Apr 2022 13:53:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxHIgI2HdswcwseD7BN8auueZrjIqzKLAak/mXYvKMmOt0omx4q9+JYkVbtZ1Allr4Wo5s2 X-Received: by 2002:a63:7d49:0:b0:378:907d:1fc7 with SMTP id m9-20020a637d49000000b00378907d1fc7mr5463705pgn.252.1650660827315; Fri, 22 Apr 2022 13:53:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650660827; cv=none; d=google.com; s=arc-20160816; b=xIaVe1+jKyVbIaCE9q4wxBiFJA21Z3sQXrJidRurFpoJqLixQpqfOMI/LJXNdmPXSZ IvGPrl7SrxDzmVCVS8OAuDLtVQlZ9hUL8Hz4EG7R42SOw4xyzFOiZ1Qg7gO7wsvDRx7m dLKYdE01STIG8C4ej7Ipk6Lp1IO89spH7oapgIJfhZYTk+/+nlLSZgFkYChBtl9s2jf/ ilbj3Q3YE9aRQEOyI2whoSuZqv9UkxQlcvG70BHqIVQTi3YsuNFxfyATK0joGViBtpPy 019mn5xBegWtAebPO0bZVpoMvLfiP1qlJRONHDHwn7v9HJUzpkNJmKI5WskVs7FSTyte t0Hg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=kT/rqOEch86HM43mMkAAZc8RAd9BtA32fvKx4p1/kQg=; b=UV9w6Fs+5IEn3+LOiWTfnkAm2M/NlnNHsX9Nn2xpDrYj0FZDeBisgb2cW+fphHP64M Yzw7oCv3WL4ZXFSqIiCZUtb60kPHTcHFo0qFwsl6BeBBTRrM+TMpAlWWmTlhADM2gZd3 1aGvIU0zwr469MohEgp3qtgE+RZSGPhc9xi6CNds6WLooISq7c/sm6S7DoKjjUFTrtmv +ZGqGuIBrSSErB+M6paYHA8KQmpNm/PkRahO05EZW2xGXntFz0fuoUR134pPLHzsgllj 6l1gC1ltVh4L7qgoo1nX8Dor+tDnxRXjzOiN4yFjTVnCQVRoOEYU3mbY+i7cXtfyhca0 5PMw== ARC-Authentication-Results: i=1; mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id n14-20020a170902f60e00b00153b2d1645esi8761712plg.102.2022.04.22.13.53.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 22 Apr 2022 13:53:47 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id B56A220A418; Fri, 22 Apr 2022 12:47:13 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442571AbiDUXge (ORCPT + 99 others); Thu, 21 Apr 2022 19:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38742 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S243601AbiDUXgc (ORCPT ); Thu, 21 Apr 2022 19:36:32 -0400 Received: from smtp.hosts.co.uk (smtp.hosts.co.uk [85.233.160.19]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE6043FBCA; Thu, 21 Apr 2022 16:33:39 -0700 (PDT) Received: from host86-155-180-61.range86-155.btcentralplus.com ([86.155.180.61] helo=[192.168.1.65]) by smtp.hosts.co.uk with esmtpa (Exim) (envelope-from ) id 1nhgIs-0004mn-6l; Fri, 22 Apr 2022 00:33:38 +0100 Message-ID: <4cabddcc-c83c-483d-89db-996862f1f49c@youngman.org.uk> Date: Fri, 22 Apr 2022 00:33:34 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.8.1 Subject: Re: [PATCH v2 01/12] md/raid5: Factor out ahead_of_reshape() function Content-Language: en-GB To: Logan Gunthorpe , Paul Menzel Cc: linux-kernel@vger.kernel.org, linux-raid@vger.kernel.org, Song Liu , Christoph Hellwig , Guoqing Jiang , Stephen Bates , Martin Oliveira , David Sloan , Christoph Hellwig References: <20220420195425.34911-1-logang@deltatee.com> <20220420195425.34911-2-logang@deltatee.com> <3252df44-5856-c1ed-174e-18748387cdd2@deltatee.com> From: Wol In-Reply-To: <3252df44-5856-c1ed-174e-18748387cdd2@deltatee.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,NICE_REPLY_A, RDNS_NONE,SPF_HELO_NONE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 21/04/2022 17:05, Logan Gunthorpe wrote: >> I like the ternary operator.;-) >> >>     return mddev->reshape_backwards ? (return sector < reshape_sector) : >> (sector >= reshape_sector) >> >> Sorry, does not matter. > Yeah, I think plenty of people do not, though; it's harder to read with > the long line and awkward to wrap. > I like the ternary too, but is there a superfluous return in there? That would shorten the line. Or break it on the question mark - condition, true, false all on their own lines. Cheers, Wol